Re: [Mesa-dev] [PATCH 1/4] Use INV_SQRT instead of 1/SQRTF

2012-07-20 Thread Kenneth Graunke
On 07/20/2012 04:15 PM, Matt Turner wrote: > On Fri, Jul 20, 2012 at 3:29 PM, Kenneth Graunke > wrote: >> On 07/20/2012 11:24 AM, Matt Turner wrote: >>> --- >>> src/mesa/math/m_debug_norm.c |4 ++-- >>> src/mesa/tnl/t_vb_points.c |2 +- >>> 2 files changed, 3 insertions(+), 3 deletions

[Mesa-dev] [PATCH 2/2] glxgears: Add support for multisample visuals

2012-07-20 Thread Chad Versace
Add a command line parameter, `-sample N`, which selects a visual with at least N samples. CC: Paul Berry Signed-off-by: Chad Versace --- src/xdemos/glxgears.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/xdemos/glxgears.c b/src/xdemos/glxgears.c index 74b0bfd..79b722

[Mesa-dev] [PATCH 1/2] glxgears: Refactor visual attributes

2012-07-20 Thread Chad Versace
Procedurally construct the attribute array according to command-line args. This is in preparation for the next commit, which add support for multisampling. CC: Paul Berry Signed-off-by: Chad Versace --- src/xdemos/glxgears.c | 50 ++ 1 file change

[Mesa-dev] [PATCH 0/2] glxgears: Add support for multisample visuals

2012-07-20 Thread Chad Versace
Tested on Ivybridge. You can find this series on git://people.freedesktop.org/~chadversary/mesa-demos.git ; msaa Chad Versace (2): glxgears: Refactor visual attributes glxgears: Add support for multisample visuals src/xdemos/glxgears.c | 64 -

Re: [Mesa-dev] [PATCH, android-build] android-build: fix dricore build for autogenerated files

2012-07-20 Thread Charles, Daniel
On Fri, Jul 20, 2012 at 4:26 PM, Matt Turner wrote: > On Fri, Jul 20, 2012 at 2:41 PM, Daniel Charles > wrote: >> Change-Id: I75e86453d23f6b6f0e2a7dfb1b48272965c9fbf2 > > What is this? It is a gerrit change id [1]. If the patch is merged it can be discarded. -- Daniel. [1]http://gerrit.goog

[Mesa-dev] [PATCH] automake: add ARCH_FLAGS, OPT_FLAGS, PIC_FLAGS into AM_CFLAGS and AM_CXXFLAGS

2012-07-20 Thread Marek Olšák
This fixes a build system regression after Makefile conversions to automake. I need only OPT_FLAGS to set -fno-omit-frame-pointer. ARCH_FLAGS is for --enable-32-bit. I am not sure what PIC_FLAGS is good for, but r600g uses it. VISIBILITY_CFLAGS might be missing too. --- src/egl/drivers/dri2/Make

Re: [Mesa-dev] [PATCH] i830: Fix stack corruption

2012-07-20 Thread Ian Romanick
On 07/20/2012 04:18 PM, Matt Turner wrote: On Fri, Jul 20, 2012 at 3:45 PM, Chad Versace wrote: Found by compiler warning: i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it?

Re: [Mesa-dev] [PATCH] i830: Fix stack corruption

2012-07-20 Thread Chad Versace
On 07/20/2012 04:18 PM, Matt Turner wrote: > On Fri, Jul 20, 2012 at 3:45 PM, Chad Versace > wrote: >> Found by compiler warning: >> i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call >> is the same expression as the destination; did you mean to >> deref

Re: [Mesa-dev] [PATCH, android-build] android-build: fix dricore build for autogenerated files

2012-07-20 Thread Matt Turner
On Fri, Jul 20, 2012 at 2:41 PM, Daniel Charles wrote: > Change-Id: I75e86453d23f6b6f0e2a7dfb1b48272965c9fbf2 What is this? ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] i830: Fix stack corruption

2012-07-20 Thread Matt Turner
On Fri, Jul 20, 2012 at 3:45 PM, Chad Versace wrote: > Found by compiler warning: > i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call > is the same expression as the destination; did you mean to > dereference it? [-Wsizeof-pointer-memaccess] >m

Re: [Mesa-dev] [PATCH 11/11] glsl: Reject linking shaders with too many uniform blocks.

2012-07-20 Thread Ian Romanick
On 07/20/2012 03:49 PM, Brian Paul wrote: On 07/20/2012 04:33 PM, Eric Anholt wrote: Part of fixing piglit maxblocks. --- src/glsl/linker.cpp | 34 ++ 1 file changed, 34 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index bfdde40..f4e5

Re: [Mesa-dev] [PATCH 1/4] Use INV_SQRT instead of 1/SQRTF

2012-07-20 Thread Matt Turner
On Fri, Jul 20, 2012 at 3:29 PM, Kenneth Graunke wrote: > On 07/20/2012 11:24 AM, Matt Turner wrote: >> --- >> src/mesa/math/m_debug_norm.c |4 ++-- >> src/mesa/tnl/t_vb_points.c |2 +- >> 2 files changed, 3 insertions(+), 3 deletions(-) >> >> diff --git a/src/mesa/math/m_debug_norm.c b

Re: [Mesa-dev] [PATCH 02/11] glsl: Incorporate all UBO language changes into GLSL 1.40.

2012-07-20 Thread Ian Romanick
On 07/20/2012 03:33 PM, Eric Anholt wrote: --- src/glsl/glsl_parser.yy |4 1 file changed, 4 insertions(+) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index b2533c8..0ed424d 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -291,6 +291,10 @@ ver

Re: [Mesa-dev] [PATCH] i830: Fix stack corruption

2012-07-20 Thread Chad Versace
On 07/20/2012 03:53 PM, Brian Paul wrote: > On 07/20/2012 04:45 PM, Chad Versace wrote: >> Found by compiler warning: >> i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call >>is the same expression as the destination; did you mean to >>dereference it?

Re: [Mesa-dev] [PATCH] i830: Fix stack corruption

2012-07-20 Thread Brian Paul
On 07/20/2012 04:45 PM, Chad Versace wrote: Found by compiler warning: i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(state, 0

Re: [Mesa-dev] [PATCH 11/11] glsl: Reject linking shaders with too many uniform blocks.

2012-07-20 Thread Brian Paul
On 07/20/2012 04:33 PM, Eric Anholt wrote: Part of fixing piglit maxblocks. --- src/glsl/linker.cpp | 34 ++ 1 file changed, 34 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index bfdde40..f4e578f 100644 --- a/src/glsl/linker.cpp +++ b/

[Mesa-dev] [PATCH] i830: Fix stack corruption

2012-07-20 Thread Chad Versace
Found by compiler warning: i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(state, 0, sizeof(state)); ~^

Re: [Mesa-dev] [PATCH 01/11] mesa: Add support for glGetProgramiv pnames for UBOs.

2012-07-20 Thread Brian Paul
On 07/20/2012 04:33 PM, Eric Anholt wrote: Fixes piglit ARB_uniform_buffer_object/getprogramiv. --- src/mesa/main/shaderapi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 6927368..f381915 100644 --- a/src

[Mesa-dev] [PATCH 11/11] glsl: Reject linking shaders with too many uniform blocks.

2012-07-20 Thread Eric Anholt
Part of fixing piglit maxblocks. --- src/glsl/linker.cpp | 34 ++ 1 file changed, 34 insertions(+) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index bfdde40..f4e578f 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2324,6 +2324,12 @@ chec

[Mesa-dev] [PATCH 10/11] mesa: Return -1 for glGetUniformLocation on UBOs.

2012-07-20 Thread Eric Anholt
Fixes piglit ARB_uniform_buffer_object/getuniformlocation. --- src/mesa/main/uniforms.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index b5aaa1b..f43d0fb 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c

[Mesa-dev] [PATCH 07/11] glsl: Merge UBO layout qualifiers in a qualifier list.

2012-07-20 Thread Eric Anholt
Yes, you get to say things like "layout(row_major, column_major)" and get column major. Part of fixing piglit ARB_uniform_buffer_object/row_major. --- src/glsl/glsl_parser.yy | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/glsl/glsl_parser.yy b/s

[Mesa-dev] [PATCH 09/11] glsl: Assign array and matrix stride values according to std140 layout.

2012-07-20 Thread Eric Anholt
--- src/glsl/link_uniforms.cpp | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index d7ef5d4..1baa46c 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -328,10 +328,21 @@ pr

[Mesa-dev] [PATCH 06/11] mesa: Add support for GL_ARB_ubo's glGetActiveUniformName().

2012-07-20 Thread Eric Anholt
This is like a stripped-down version of glGetActiveUniform that just returns the name, since the other return values (type and size) of that function are now meant to be handled with glGetActiveUniformsiv(). Fixes piglit ARB_uniform_buffer_object/getactiveuniformname --- src/mesa/main/uniforms.c

[Mesa-dev] [PATCH 08/11] glsl: Add support for default layout qualifiers for uniforms.

2012-07-20 Thread Eric Anholt
I ended up having to add rallocing of the ast_type_qualifier in order to avoid pulling in ast.h for glsl_parser_extras.h, because I wanted to track an ast_type_qualifier in the state. Fixes piglit ARB_uniform_buffer_object/row-major. --- src/glsl/ast.h | 23 sr

[Mesa-dev] [PATCH 02/11] glsl: Incorporate all UBO language changes into GLSL 1.40.

2012-07-20 Thread Eric Anholt
--- src/glsl/glsl_parser.yy |4 1 file changed, 4 insertions(+) diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index b2533c8..0ed424d 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -291,6 +291,10 @@ version_statement:

[Mesa-dev] [PATCH 05/11] mesa: Add support for most of the other pnames of glGetActiveUniformBlockiv().

2012-07-20 Thread Eric Anholt
--- src/mesa/main/uniforms.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 3236d6e..6652251 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -643,6 +643,7 @@ _mesa_GetActiveUnif

[Mesa-dev] Last big core UBO support dump.

2012-07-20 Thread Eric Anholt
I've managed to get the lowering pass working sufficiently to get the same set of tests passing on i965, and the problems seem tractable enough to go with that. I'm hoping to finish up UBOs by the end of the month. Here are my remaining core changes other than that lowering pass. There are a cou

[Mesa-dev] [PATCH 04/11] mesa: Add support for getting active uniform block names.

2012-07-20 Thread Eric Anholt
Fixes piglit ARB_uniform_buffer_object/getactiveuniformblockname. --- src/mesa/main/uniforms.c | 47 ++ 1 file changed, 47 insertions(+) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 940cb07..3236d6e 100644 --- a/src/mesa/main

[Mesa-dev] [PATCH 01/11] mesa: Add support for glGetProgramiv pnames for UBOs.

2012-07-20 Thread Eric Anholt
Fixes piglit ARB_uniform_buffer_object/getprogramiv. --- src/mesa/main/shaderapi.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 6927368..f381915 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shad

[Mesa-dev] [PATCH 03/11] mesa: Add support for glUniformBlockBinding() and the API to get it back.

2012-07-20 Thread Eric Anholt
Fixes piglit ARB_uniform_buffer_object/uniformbufferbinding. --- src/mesa/main/uniforms.c | 95 ++ 1 file changed, 95 insertions(+) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index ccbd753..940cb07 100644 --- a/src/mesa/main/unif

Re: [Mesa-dev] [PATCH, android-build] android-build: fix dricore build for autogenerated files

2012-07-20 Thread Sean V Kelley
On Fri, Jul 20, 2012 at 2:41 PM, Daniel Charles wrote: > Recently more files were removed from control to be auto-generated > in the dricore library. Android build was not able to locate the > new files if they were not created beforehand. > > LOCAL_SRC_FILES includes some of those files and Andro

Re: [Mesa-dev] [PATCH 1/4] Use INV_SQRT instead of 1/SQRTF

2012-07-20 Thread Kenneth Graunke
On 07/20/2012 11:24 AM, Matt Turner wrote: > --- > src/mesa/math/m_debug_norm.c |4 ++-- > src/mesa/tnl/t_vb_points.c |2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/mesa/math/m_debug_norm.c b/src/mesa/math/m_debug_norm.c > index 02eb1f9..dc768f3 100644 >

[Mesa-dev] [PATCH 4/4] i965: make the length for PIPE_CONTROL explicit

2012-07-20 Thread Daniel Vetter
PIPE_CONTROL has variable length, depending upon gen and whether we write out 32bit or 64bit. So make this explicit. Suggested by Kenneth Graunke. --- src/mesa/drivers/dri/i965/brw_queryobj.c | 22 +++--- src/mesa/drivers/dri/i965/gen6_vs_state.c |2 +- src/mesa/d

[Mesa-dev] [PATCH 3/4] i965: adjust gen6+ timestamp pipe_control writes

2012-07-20 Thread Daniel Vetter
Similar treatment to the depth count pipe_control writes - Add the CS_STALL workaround, timestamp writes are non-zero post-sync ops, too. - Also ensure that we write the full 64bits by using the 5 dword long variant of pipe_control. v2: Implement |(5-2) suggestion from Kenneth Graunke. --- sr

[Mesa-dev] [PATCH 1/4] i965: tackle the occlusion query pipe control mess

2012-07-20 Thread Daniel Vetter
- Separate out the depth stall from the depth count write, workarounds say that a depth stall needs to be preceeded with a non-zero post-sync op. - Implement the cs stall workaround like the kernel does. I've hoped that this would fix a occlusion query issue on snb, but alas, it doesn't seem t

[Mesa-dev] [PATCH 2/4] i965: we want 64bit writes for depth count

2012-07-20 Thread Daniel Vetter
... and the hardware seems to take the lenght of the pipe control command to indicate whether the write is 64bit or 32bit. Which makes sense for immediate writes. I've discovered this by writing a pattern into the query object bo and noticing that the high 32bits are left intact, even on those pip

[Mesa-dev] [PATCH, android-build] android-build: fix dricore build for autogenerated files

2012-07-20 Thread Daniel Charles
Recently more files were removed from control to be auto-generated in the dricore library. Android build was not able to locate the new files if they were not created beforehand. LOCAL_SRC_FILES includes some of those files and Android.gen.mk re-defines this variable by filtering out the auto-gene

Re: [Mesa-dev] [PATCH] i965/gen7: Increase the WM threads to hardware limits.

2012-07-20 Thread Matt Turner
On Thu, Jul 19, 2012 at 1:17 AM, Kenneth Graunke wrote: > With my Sandybridge GT2's register 0x20d0 value of 0x0, bumping the > maximum thread count to 80 also seems to work (Unigine Heaven didn't > tank my system). I haven't done any performance measurements. As a quick data point, the Counter-

Re: [Mesa-dev] [PATCH] st/mesa: call update_renderbuffer_surface for sRGB renderbuffers, too

2012-07-20 Thread Brian Paul
On 07/20/2012 01:04 PM, Christoph Bumiller wrote: sRGBEnabled should affect both textures and renderbuffers, so we need to check/update the pipe_surface format for both. Fixes, for instance, rendering appearing too bright in wine applications using sRGB multisample renderbuffers. --- src/mesa/

[Mesa-dev] [PATCH] st/mesa: call update_renderbuffer_surface for sRGB renderbuffers, too

2012-07-20 Thread Christoph Bumiller
sRGBEnabled should affect both textures and renderbuffers, so we need to check/update the pipe_surface format for both. Fixes, for instance, rendering appearing too bright in wine applications using sRGB multisample renderbuffers. --- src/mesa/state_tracker/st_atom_framebuffer.c |5 +++-- 1 f

Re: [Mesa-dev] [PATCH 1/4] Use INV_SQRT instead of 1/SQRTF

2012-07-20 Thread Brian Paul
On 07/20/2012 12:24 PM, Matt Turner wrote: --- src/mesa/math/m_debug_norm.c |4 ++-- src/mesa/tnl/t_vb_points.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/math/m_debug_norm.c b/src/mesa/math/m_debug_norm.c index 02eb1f9..dc768f3 100644 --- a/src/m

Re: [Mesa-dev] [PATCH 1/7] build: fix location of generated files in src/mesa (v3)

2012-07-20 Thread Eric Anholt
Christopher James Halse Rogers writes: > Also fix include paths for the generated headers. > > v2: Switch to using self-explanatory BUILDDIR/SRCDIR defined from > top_builddir/top_srcdir rather than the ambiguous TOP. > v3: Add both top_builddir and top_srcdir to include flags for mesa asm. >

[Mesa-dev] [PATCH 4/4] Remove unused _mesa_memset16

2012-07-20 Thread Matt Turner
Unused since commit fd104a845. --- src/mesa/main/imports.c | 13 - src/mesa/main/imports.h |3 --- 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index e7e877b..444de87 100644 --- a/src/mesa/main/imports.c +++ b/s

[Mesa-dev] [PATCH 3/4] Remove _mesa_inv_sqrtf in favor of 1/SQRTF

2012-07-20 Thread Matt Turner
Except for a couple of explicit uses, _mesa_inv_sqrtf was disabled since its addition in 2003 (see f9b1e524). --- src/mesa/main/imports.c| 106 src/mesa/main/imports.h|9 +--- src/mesa/tnl/t_rasterpos.c |2 +- src/mesa/tnl/t_vb_texgen.c

[Mesa-dev] [PATCH 2/4] Remove _mesa_sqrt* in favor of plain sqrt

2012-07-20 Thread Matt Turner
Temporarily disabled since 2003 (see 386578c5b). This saves us from calling sqrt() 128 times to generate the sqrttab in one_time_init(). --- src/mesa/main/context.c |2 - src/mesa/main/imports.c | 101 --- src/mesa/main/imports.h | 15 +-- 3

[Mesa-dev] [PATCH 1/4] Use INV_SQRT instead of 1/SQRTF

2012-07-20 Thread Matt Turner
--- src/mesa/math/m_debug_norm.c |4 ++-- src/mesa/tnl/t_vb_points.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/math/m_debug_norm.c b/src/mesa/math/m_debug_norm.c index 02eb1f9..dc768f3 100644 --- a/src/mesa/math/m_debug_norm.c +++ b/src/mesa/math/m_de

Re: [Mesa-dev] [Intel-gfx] [PATCH 4/9] intel gen4-5: Fix backface/frontface selection when one one color is written to.

2012-07-20 Thread Olivier Galibert
On Fri, Jul 20, 2012 at 10:01:03AM -0700, Eric Anholt wrote: > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > > b/src/mesa/drivers/dri/i965/brw_fs.cpp > > index 3f98137..3b62952 100644 > > --- a/src/mesa/drivers/dri/i965/brw_fs.cpp > > +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp > > @@ -972,

Re: [Mesa-dev] [Intel-gfx] [PATCH 4/9] intel gen4-5: Fix backface/frontface selection when one one color is written to.

2012-07-20 Thread Eric Anholt
Olivier Galibert writes: > Shaders, piglit test ones in particular, may write only to one of > gl_FrontColor/gl_BackColor. The standard is unclear on whether the > behaviour is defined in that case, but it seems reasonable to support > it. > > The choice done there to pick up whichever color was

Re: [Mesa-dev] radeonsi: New state handling

2012-07-20 Thread Michel Dänzer
On Fre, 2012-07-20 at 12:21 +0200, Christian König wrote: > > this is going to be a big patchset. Since on SI+ some of the > rendering state especially the texture and vertex setup isn't > inside registers any more we are going to need a new state > handling for radeonsi. > > So the following pa

Re: [Mesa-dev] [PATCH 12/18] glsl: Set the uniform_block index for the linked shader variables.

2012-07-20 Thread Eric Anholt
Ian Romanick writes: > On 07/02/2012 05:38 PM, Eric Anholt wrote: >> At this point in the linking, we've totally lost track of the struct >> gl_uniform_buffer that this pointed to in the original unlinked >> shader, so we do a nasty n^2 walk to find it the new one based on the >> variable name. >

Re: [Mesa-dev] [PATCH] st/xorg: fix masked transformations

2012-07-20 Thread Michel Dänzer
On Don, 2012-07-19 at 21:09 +0200, Lucas Stach wrote: > Someone tried to be clever and "optimized" add_vertex_data2() to just use > two points for the texture coordinates and then reuse individual > components. Sadly this is not how matrix multiplication works. > > Fixes rendercheck -t tmcoords >

[Mesa-dev] [Bug 52140] Ubuntu Unity - Launcher and switcher icons disappeared

2012-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52140 --- Comment #11 from Loris Z. 2012-07-20 15:29:56 PDT --- I'm experiencing this bug too with xorg-edgers ppa, Ubuntu 12.10, Unity 6.0 series. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving

Re: [Mesa-dev] [PATCH 0/7] i965/blorp: Improvements to the blorp engine for Gen7.

2012-07-20 Thread Paul Berry
On 19 July 2012 18:17, Anuj Phogat wrote: > On Thu, Jul 12, 2012 at 10:43 AM, Paul Berry > wrote: > > This patch series makes three improvements to the blorp engine (which > > does MSAA resolves and other blits) for Gen7: > > > > Patches 1-3 fix downsampling of integer format framebuffers on Gen

Re: [Mesa-dev] [PATCH v2 1/3] glx: Simplify __glXReadPixelReply

2012-07-20 Thread Matt Turner
On Fri, Jul 20, 2012 at 2:09 AM, Julien Cristau wrote: Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 52277] src/gallium/state_trackers/egl/common/egl_g3d_api.c:43:25: fatal error: wayland-drm.h: No such file or directory

2012-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52277 --- Comment #1 from Kristian Høgsberg 2012-07-20 14:02:05 UTC --- This one should be fixed in master. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the a

Re: [Mesa-dev] [PATCH v2 1/3] glx: Simplify __glXReadPixelReply

2012-07-20 Thread Alex Deucher
On Fri, Jul 20, 2012 at 5:09 AM, Julien Cristau wrote: > From: Julien Cristau > > Doing > size = reply.length * 4; > [...] > extra = 4 - (size & 3); > > is useless, size & 3 will always be 0. > > Signed-off-by: Julien Cristau Reviewed-by: Alex Deucher > --- > v2: also

[Mesa-dev] [PATCH 23/23] radeonsi: remove old state handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 191 src/gallium/drivers/radeonsi/r600.h| 97 -- src/gallium/drivers/radeonsi/r600_hw_context.c | 313 +--- .../drivers/radeonsi/r600_hw_context_priv.h

[Mesa-dev] [PATCH 22/23] radeonsi: move everything else into the new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/Makefile.sources|1 - src/gallium/drivers/radeonsi/evergreen_state.c | 98 --- src/gallium/drivers/radeonsi/r600_state_common.c | 157 - src/gallium/drivers/radeonsi/radeonsi_pipe.c |2 +-

[Mesa-dev] [PATCH 21/23] radeonsi: move format handling into si_state.c

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/evergreen_state.c | 534 src/gallium/drivers/radeonsi/radeonsi_pipe.h |9 - src/gallium/drivers/radeonsi/si_state.c| 100 + src/gallium/drivers/radeonsi/si_state.h|9 + 4 files

[Mesa-dev] [PATCH 20/23] radeonsi: move remaining sampler state into si_state.c

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/evergreen_state.c | 339 -- src/gallium/drivers/radeonsi/si_state.c| 440 2 files changed, 440 insertions(+), 339 deletions(-) diff --git a/src/gallium/drivers/radeonsi/evergreen_st

[Mesa-dev] [PATCH 18/23] radeonsi: move constants to new state handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/evergreen_state.c |1 - src/gallium/drivers/radeonsi/r600_state_common.c | 57 -- src/gallium/drivers/radeonsi/radeonsi_pipe.h |4 -- src/gallium/drivers/radeonsi/si_state.c | 55 +++

[Mesa-dev] [PATCH 17/23] radeonsi: move sampler states into new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/evergreen_state.c | 105 -- src/gallium/drivers/radeonsi/radeonsi_pipe.h |2 - src/gallium/drivers/radeonsi/si_state.c| 113 src/gallium/drivers/radeonsi/si_state.h

[Mesa-dev] [PATCH 16/23] radeonsi: move shaders to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/evergreen_state.c | 214 -- src/gallium/drivers/radeonsi/r600_state_common.c | 77 +-- src/gallium/drivers/radeonsi/radeonsi_pipe.h | 44 +--- src/gallium/drivers/radeonsi/radeonsi_shader.c |4 +-

[Mesa-dev] [PATCH 15/23] radeonsi: move spi into new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 32 -- src/gallium/drivers/radeonsi/evergreen_state.c | 46 src/gallium/drivers/radeonsi/radeonsi_pipe.h |2 - src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH 14/23] radeonsi: move init state to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/evergreen_state.c | 37 -- src/gallium/drivers/radeonsi/radeonsi_pipe.c |1 + src/gallium/drivers/radeonsi/radeonsi_pipe.h |1 - src/gallium/drivers/radeonsi/si_state.c| 40

[Mesa-dev] [PATCH 13/23] radeonsi: move draw_info to new state handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 11 --- src/gallium/drivers/radeonsi/evergreen_state.c |2 - src/gallium/drivers/radeonsi/r600_state_common.c | 86 +--- src/gallium/drivers/radeonsi/radeonsi_pipe.h |2

[Mesa-dev] [PATCH 12/23] radeonsi: move CB_TARGET_MASK into fb/blend state

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c|1 - src/gallium/drivers/radeonsi/r600_state_common.c | 12 +-- src/gallium/drivers/radeonsi/si_state.c| 21 src/gallium/drivers/radeonsi/si_state.h

[Mesa-dev] [PATCH 11/23] radeonsi: move stencil_ref to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c|2 - src/gallium/drivers/radeonsi/evergreen_state.c |1 - src/gallium/drivers/radeonsi/r600_blit.c |4 +- src/gallium/drivers/radeonsi/r600_state_common.c | 50

[Mesa-dev] [PATCH 10/23] radeonsi: move dsa state to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 12 -- src/gallium/drivers/radeonsi/evergreen_state.c | 101 --- src/gallium/drivers/radeonsi/r600_blit.c |2 +- src/gallium/drivers/radeonsi/r600_state_common.c | 33 +

[Mesa-dev] [PATCH 08/23] radeonsi: move rasterizer state into new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 14 -- src/gallium/drivers/radeonsi/evergreen_state.c | 135 + src/gallium/drivers/radeonsi/r600_blit.c |2 +- src/gallium/drivers/radeonsi/r600_state_common.c | 38 ---

[Mesa-dev] [PATCH 09/23] radeonsi: move infeered fb/rs state to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c|5 -- src/gallium/drivers/radeonsi/evergreen_state.c | 50 - src/gallium/drivers/radeonsi/radeonsi_pipe.h |2 - src/gallium/drivers/radeonsi/si_state.c| 59

[Mesa-dev] [PATCH 07/23] radeonsi: move framebuffer to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 86 --- src/gallium/drivers/radeonsi/evergreen_state.c | 358 --- src/gallium/drivers/radeonsi/r600_state_common.c |2 +- src/gallium/drivers/radeonsi/radeonsi_pipe.h |2 - src/g

[Mesa-dev] [PATCH 06/23] radeonsi: move viewport to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 10 --- src/gallium/drivers/radeonsi/evergreen_state.c | 28 src/gallium/drivers/radeonsi/r600_blit.c |5 ++-- src/gallium/drivers/radeonsi/radeonsi_pipe.h

[Mesa-dev] [PATCH 05/23] radeonsi: move scissor state to new state handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c|8 src/gallium/drivers/radeonsi/evergreen_state.c | 44 src/gallium/drivers/radeonsi/radeonsi_pipe.h |1 - src/gallium/drivers/radeonsi/si_state.c| 25

[Mesa-dev] [PATCH 04/23] radeonsi: move clip state to new handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 24 --- src/gallium/drivers/radeonsi/evergreen_state.c | 32 src/gallium/drivers/radeonsi/radeonsi_pipe.h |2 -- src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH 03/23] radeonsi: move blend color to new state handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c|4 src/gallium/drivers/radeonsi/evergreen_state.c | 21 src/gallium/drivers/radeonsi/radeonsi_pipe.h |1 - src/gallium/drivers/radeonsi/si_state.c| 18

[Mesa-dev] [PATCH 02/23] radeonsi: move blender to new state handling

2012-07-20 Thread Christian König
Signed-off-by: Christian König --- .../drivers/radeonsi/evergreen_hw_context.c| 11 -- src/gallium/drivers/radeonsi/evergreen_state.c | 152 +-- src/gallium/drivers/radeonsi/r600_blit.c |2 +- src/gallium/drivers/radeonsi/r600_state_common.c | 27 +

[Mesa-dev] [PATCH 01/23] radeonsi: rework state handling

2012-07-20 Thread Christian König
Add a complete new state handling for SI. Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/Makefile.sources|4 +- src/gallium/drivers/radeonsi/r600_hw_context.c |2 + src/gallium/drivers/radeonsi/r600_state_common.c |3 + src/gallium/drivers/radeonsi/radeonsi_pip

[Mesa-dev] radeonsi: New state handling

2012-07-20 Thread Christian König
Hi everyone, this is going to be a big patchset. Since on SI+ some of the rendering state especially the texture and vertex setup isn't inside registers any more we are going to need a new state handling for radeonsi. So the following patchset is a complete rewrite of it. It makes a couple of ass

[Mesa-dev] [PATCH 3/3] glx: drop unused 'dim' argument from __glEmptyImage

2012-07-20 Thread Julien Cristau
From: Julien Cristau Suggested-by: Ian Romanick Signed-off-by: Julien Cristau --- src/glx/apple/glxreply.c |2 +- src/glx/glxclient.h |2 +- src/glx/pixel.c |2 +- src/glx/singlepix.c |8 src/mapi/glapi

[Mesa-dev] [PATCH v2 2/3] glapi/glx: call __glEmptyImage if USE_XCB, not memcpy directly

2012-07-20 Thread Julien Cristau
From: Julien Cristau We were stomping on the caller's buffer by ignoring their alignment requests and other pixel store modes. This patch makes the USE_XCB path match the older one more closely. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=52059 Signed-off-by: Julien Cristau --- v2:

[Mesa-dev] [PATCH v2 1/3] glx: Simplify __glXReadPixelReply

2012-07-20 Thread Julien Cristau
From: Julien Cristau Doing size = reply.length * 4; [...] extra = 4 - (size & 3); is useless, size & 3 will always be 0. Signed-off-by: Julien Cristau --- v2: also change the copy in src/glx/apple src/glx/apple/glxreply.c |5 - src/mapi/glapi/gen/g

Re: [Mesa-dev] Mesa (master): gallium-egl: Implement eglQueryWaylandBufferWL

2012-07-20 Thread Jose Fonseca
- Original Message - > On Thu, Jul 19, 2012 at 3:26 PM, Kristian Høgsberg > wrote: > > On Thu, Jul 19, 2012 at 2:44 PM, Jose Fonseca > > wrote: > >> > >> > >> - Original Message - > >>> This commit is causing build failures in several platforms > >>> because > >>> EGL_WL_bind_wa

[Mesa-dev] [Bug 52282] [softpipe] piglit arb_shader_texture_lod-texgrad regression

2012-07-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52282 --- Comment #1 from Olivier Galibert 2012-07-20 07:15:45 UTC --- galibert@tata:~/X/piglit #16 >./bin/arb_shader_texture_lod-texgrad -auto Left: texture2D, Right: texture2DGradARB PIGLIT: {'result': 'pass' } I'm not getting that, and I'm obvious