[Mesa-dev] [Bug 54106] New: Fix a memory leak in dri2_terminate()

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54106 Bug #: 54106 Summary: Fix a memory leak in dri2_terminate() Classification: Unclassified Product: Mesa Version: git Platform: All OS/Version: All Status: NEW

[Mesa-dev] Fwd: GLX_INTEL_swap_event crashes driver when swapping window buffers

2012-08-27 Thread Daniel Manjarres
Hi, I'm just forwarding this message that I sent to debian upstream to you guys too. Have great day! Original Message Subject:GLX_INTEL_swap_event crashes driver when swapping window buffers Date: Sun, 19 Aug 2012 12:30:30 -0700 From: Daniel Manjarres

Re: [Mesa-dev] r300g broken

2012-08-27 Thread son_of_the_osiris
Please run git clean -fdX in the Mesa repository and then reconfigure and rebuild. Almost the same, even with this change: r300/compiler: Use variable lists in the rename_regs pass When I run opera with HW enabled in valgrind I see something like this: r300: DRM version: 2.17.0, Name: ATI

Re: [Mesa-dev] [PATCH 0/5] MSAA on R6xx

2012-08-27 Thread Török Edwin
On 08/27/2012 05:00 AM, Marek Olšák wrote: This series implements MSAA for the R6xx family of GPUs. The only problem is that the depth decompression doesn't work with MSAA depth buffers, which means for the GL user that depth-stencil blitting and depth-stencil resolve don't work, although

Re: [Mesa-dev] [PATCH] r600g: fix relative addressing on RS880

2012-08-27 Thread Marek Olšák
On Mon, Aug 27, 2012 at 10:37 AM, Michel Dänzer mic...@daenzer.net wrote: On Mon, 2012-08-27 at 02:27 +0200, Marek Olšák wrote: This sets AR_HANDLE_NORMAL for RS880. I've added RS780 too, because I thought it was a similar GPU, but I cannot test it. I don't really know if this fix is correct.

Re: [Mesa-dev] [PATCH] radeonsi: Don't write to the PA_SC_RASTER_CONFIG register.

2012-08-27 Thread Michel Dänzer
On Fre, 2012-08-24 at 12:18 -0400, Alex Deucher wrote: On Fri, Aug 24, 2012 at 11:37 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com It should be initialized by the kernel as necessary. Does this patch work ok after powering off the system to make

Re: [Mesa-dev] [PATCH 0/5] MSAA on R6xx

2012-08-27 Thread Török Edwin
On 08/27/2012 12:33 PM, Török Edwin wrote: On 08/27/2012 05:00 AM, Marek Olšák wrote: This series implements MSAA for the R6xx family of GPUs. The only problem is that the depth decompression doesn't work with MSAA depth buffers, which means for the GL user that depth-stencil blitting and

Re: [Mesa-dev] [PATCH 0/5] MSAA on R6xx

2012-08-27 Thread Marek Olšák
I think the forward compatible contexts can only be created with OpenGL 3.1 and later versions, but I am not 100% sure. Marek On Mon, Aug 27, 2012 at 3:47 PM, Török Edwin edwin+ml-mesa...@etorok.net wrote: On 08/27/2012 12:33 PM, Török Edwin wrote: On 08/27/2012 05:00 AM, Marek Olšák wrote:

Re: [Mesa-dev] r300g broken

2012-08-27 Thread Marek Olšák
I tested r300g yesterday and there were no issues. Please double-check that the versions of libglapi, libdricore, and r300_dri match, i.e. they are compiled from the same git commit. Marek On Mon, Aug 27, 2012 at 11:43 AM, son_of_the_osi...@interia.pl wrote: Please run git clean -fdX in the

Re: [Mesa-dev] r300g broken

2012-08-27 Thread Tom Stellard
Please run git clean -fdX in the Mesa repository and then reconfigure and rebuild. Almost the same, even with this change: r300/compiler: Use variable lists in the rename_regs pass When I run opera with HW enabled in valgrind I see something like this: r300: DRM version: 2.17.0, Name:

Re: [Mesa-dev] [PATCH 0/5] MSAA on R6xx

2012-08-27 Thread Török Edwin
On 08/27/2012 05:09 PM, Marek Olšák wrote: I think the forward compatible contexts can only be created with OpenGL 3.1 and later versions, but I am not 100% sure. According to comments in GLFW it appears that forward compat. contexts should work with 3.0: // Context profiles are only defined

[Mesa-dev] [PATCH] st/mesa: use fallback path for glCopyTexSubImage(GL_TEXTURE_1D_ARRAY)

2012-08-27 Thread Brian Paul
Fixes many failing cases in piglit copyteximage test. --- src/mesa/state_tracker/st_cb_texture.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 3de96ad..ed3bbc7 100644 ---

[Mesa-dev] [PATCH] gallium/util: implement tile code for PIPE_FORMAT_Z32_FLOAT

2012-08-27 Thread Brian Paul
--- src/gallium/auxiliary/util/u_tile.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index ea4b91f..48e73c4 100644 --- a/src/gallium/auxiliary/util/u_tile.c

Re: [Mesa-dev] [PATCH] r600g: fix relative addressing on RS880

2012-08-27 Thread Michel Dänzer
On Mon, 2012-08-27 at 14:14 +0200, Marek Olšák wrote: On Mon, Aug 27, 2012 at 10:37 AM, Michel Dänzer mic...@daenzer.net wrote: On Mon, 2012-08-27 at 02:27 +0200, Marek Olšák wrote: This sets AR_HANDLE_NORMAL for RS880. I've added RS780 too, because I thought it was a similar GPU, but I

Re: [Mesa-dev] [PATCH] st/mesa: use fallback path for glCopyTexSubImage(GL_TEXTURE_1D_ARRAY)

2012-08-27 Thread Jose Fonseca
Sounds good to me. Jose - Original Message - Fixes many failing cases in piglit copyteximage test. --- src/mesa/state_tracker/st_cb_texture.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c

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

2012-08-27 Thread Brian Paul
On 08/23/2012 07:27 AM, Julien Cristau wrote: On Sat, Jul 28, 2012 at 13:04:56 +0200, Julien Cristau wrote: On Fri, Jul 20, 2012 at 11:09:19 +0200, Julien Cristau wrote: From: Julien Cristaujulien.cris...@logilab.fr We were stomping on the caller's buffer by ignoring their alignment

Re: [Mesa-dev] [PATCH] r600g: fix relative addressing on RS880

2012-08-27 Thread Alex Deucher
On Mon, Aug 27, 2012 at 11:54 AM, Michel Dänzer mic...@daenzer.net wrote: On Mon, 2012-08-27 at 14:14 +0200, Marek Olšák wrote: On Mon, Aug 27, 2012 at 10:37 AM, Michel Dänzer mic...@daenzer.net wrote: On Mon, 2012-08-27 at 02:27 +0200, Marek Olšák wrote: This sets AR_HANDLE_NORMAL for

Re: [Mesa-dev] [PATCH] gallium/util: implement tile code for PIPE_FORMAT_Z32_FLOAT

2012-08-27 Thread Jose Fonseca
Looks good to me. Jose - Original Message - --- src/gallium/auxiliary/util/u_tile.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index

[Mesa-dev] [Bug 53179] libOSMesa / libdricore not linked well

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53179 --- Comment #1 from Rafał Mużyło galtge...@o2.pl 2012-08-27 17:17:01 UTC --- Created attachment 66184 -- https://bugs.freedesktop.org/attachment.cgi?id=66184 patch that sems to clean up unresolved symbols in libOSMesa (for mesa 8.1) While I'm

[Mesa-dev] [Bug 53179] libOSMesa / libdricore not linked well

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53179 --- Comment #2 from Matt Turner matts...@gmail.com 2012-08-27 17:43:18 UTC --- You don't even want OSMesa linked against glapi at all, do you? If you link against glapi, can you use that OSMesa binary with, say, the nvidia proprietary drivers?

[Mesa-dev] [PATCH 2/3] i965: Make the param pointer arrays for the WM dynamically sized.

2012-08-27 Thread Eric Anholt
Saves 26.5MB of wasted memory allocation in the l4d2 demo. --- src/mesa/drivers/dri/i965/brw_context.h | 15 --- src/mesa/drivers/dri/i965/brw_fs.cpp|2 -- src/mesa/drivers/dri/i965/brw_state_cache.c |7 + src/mesa/drivers/dri/i965/brw_wm.c | 38

[Mesa-dev] [PATCH 1/3] glsl: Count builtin uniforms against uniform component limits.

2012-08-27 Thread Eric Anholt
We don't fully process the builtin uniforms, but at least num_uniform_components reflects reality now. --- src/glsl/link_uniforms.cpp |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index eef9025..aa8a8b3 100644

[Mesa-dev] [PATCH 3/3] i965: Make the param pointer arrays for the VS dynamically sized.

2012-08-27 Thread Eric Anholt
Saves 96MB of wasted memory in the l4d2 demo. --- src/mesa/drivers/dri/i965/brw_context.h |4 ++-- src/mesa/drivers/dri/i965/brw_state_cache.c |2 ++ src/mesa/drivers/dri/i965/brw_vs.c | 32 +++ src/mesa/drivers/dri/i965/brw_vs.h |1 + 4

Re: [Mesa-dev] [PATCH 5/5] mesa/es: Validate glRenderbufferStorage internalFormat in Mesa code rather than the ES wrapper

2012-08-27 Thread Ian Romanick
On 08/25/2012 11:00 AM, Eric Anholt wrote: Ian Romanick i...@freedesktop.org writes: On 08/24/2012 02:46 PM, Eric Anholt wrote: Ian Romanick i...@freedesktop.org writes: case GL_RED: case GL_R8: + return ctx-API != API_OPENGLES ctx-Extensions.ARB_texture_rg + ?

[Mesa-dev] [Bug 53884] gl_FragCoord gets corrupted in some camera angles

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53884 --- Comment #8 from Lauri Kasanen cur...@operamail.com 2012-08-27 18:40:02 UTC --- fglrx shows the same behavior. Progress - I found it's an ordering bug. 1. Render scene to rttFinal 2. Bind and clear to gray rttTMP 3. Multiply rttTMP into

Re: [Mesa-dev] [PATCH 1/7] i965: Drop manual hiz resolves in span rendering.

2012-08-27 Thread Chad Versace
On 08/26/2012 04:46 PM, Eric Anholt wrote: swrast uses MapRenderbuffer, which leads to intel_miptree_map, which does the depth resolve. --- src/mesa/drivers/dri/intel/intel_span.c | 10 -- 1 file changed, 10 deletions(-) Reviewed-by: Chad Versace chad.vers...@linux.intel.com

Re: [Mesa-dev] [PATCH 2/7] i965: Move depth resolve for span fallbacks to a simpler place.

2012-08-27 Thread Chad Versace
On 08/26/2012 04:46 PM, Eric Anholt wrote: --- src/mesa/drivers/dri/intel/intel_span.c | 28 --- src/mesa/drivers/dri/intel/intel_tex_validate.c |3 +++ 2 files changed, 3 insertions(+), 28 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 7/7] i965: Disable the swrast context setup on GL 3.1 core.

2012-08-27 Thread Chad Versace
On 08/26/2012 04:46 PM, Eric Anholt wrote: I've reviewed the code, and the swrast callsites remaining are all in drawpixels/copypixels/bitmap/accum, or _swrast_BlitFramebuffer that shouldn't be hit. A piglit run with the context setup disabled on legacy GL and GLES2 showed regressions only in

[Mesa-dev] [Bug 53942] [bug] Weston-DRM segv after start-up from weston_output_finish_frame (in gbm_bo_write)

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=53942 U. Artie Eoff ullysses.a.e...@intel.com changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH 02/10] i965: Don't set vp_outputs_written in the WM program key on Gen6+.

2012-08-27 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: It's only used by the old backend on pre-Sandybridge hardware. It's also used by the new backend on pre-snb hw. pgp55zBgY0vyF.pgp Description: PGP signature ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH 06/10] i965/fs: Assume shadow sampler swizzling is X, X, X, 1.

2012-08-27 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: Our previous assumption, SWIZZLE_XYZW, was completely bogus for depth textures. There are no Y, Z, or W components. Seems like this doesn't even need to be shadow-sampler-dependent, just whether the baseformat is depth/depthstencil.

Re: [Mesa-dev] i965 precompile improvements

2012-08-27 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: Here's a follow-up to my last series. Now that the FS precompile doesn't completely keel over in the face of texturing, I figured I'd try to fix it up. The result is pretty good: we now guess correctly most of the time. On Sandybridge, my L4D2

[Mesa-dev] [PATCH] u_vbuf: avoid unnecessary update of the vertex elements

2012-08-27 Thread Vadim Girlin
Signed-off-by: Vadim Girlin vadimgir...@gmail.com --- Improves performance for Lightsmark (and probably other apps). src/gallium/auxiliary/util/u_vbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_vbuf.c

Re: [Mesa-dev] [PATCH 1/7] i965: Drop manual hiz resolves in span rendering.

2012-08-27 Thread Ian Romanick
Nice work. Patches 1 2 are Acked-by: Ian Romanick ian.d.roman...@intel.com and patches 3 through 7 are Reviewed-by: Ian Romanick ian.d.roman...@intel.com On 08/26/2012 04:46 PM, Eric Anholt wrote: swrast uses MapRenderbuffer, which leads to intel_miptree_map, which does the depth resolve.

[Mesa-dev] [Bug 54140] New: [llvmpipe] GL_EXT_texture_compression_s3tc is no longer enabled even when libtxc_dxtn is available.

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54140 Bug #: 54140 Summary: [llvmpipe] GL_EXT_texture_compression_s3tc is no longer enabled even when libtxc_dxtn is available. Classification: Unclassified Product: Mesa Version:

[Mesa-dev] [Bug 54140] [llvmpipe] GL_EXT_texture_compression_s3tc is no longer enabled even when libtxc_dxtn is available.

2012-08-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54140 --- Comment #1 from Matt Turner matts...@gmail.com 2012-08-28 03:53:17 UTC --- (In reply to comment #0) $ scons Looks like gallium.py needs to be modified to check for dlopen and define HAVE_DLOPEN. It can probably be added in the same spot

[Mesa-dev] [PATCH 1/6] mesa: test for GL_EXT_framebuffer_sRGB in glPopAttrib()

2012-08-27 Thread Brian Paul
From: Brian Paul bri...@vmware.com To avoid spurious GL_INVALID_ENUM errors if the extension isn't supported. --- src/mesa/main/attrib.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 1a04eeb..8cb2a68 100644 ---

[Mesa-dev] [PATCH 2/6] swrast: fix wrong assignments in _swrast_add_spec_terms_line()

2012-08-27 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/swrast/s_lines.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/swrast/s_lines.c b/src/mesa/swrast/s_lines.c index 2078be4..cfd3e6f 100644 --- a/src/mesa/swrast/s_lines.c +++ b/src/mesa/swrast/s_lines.c @@

[Mesa-dev] [PATCH 3/6] tnl: use INTERP_4F() instead of four INTERP_F() calls

2012-08-27 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/tnl/t_vertex_generic.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/mesa/tnl/t_vertex_generic.c b/src/mesa/tnl/t_vertex_generic.c index 7b7f511..44d6250 100644 --- a/src/mesa/tnl/t_vertex_generic.c +++

[Mesa-dev] [PATCH 4/6] mesa: convert a bunch of math macros to inline functions

2012-08-27 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/main/macros.h | 142 +--- 1 files changed, 86 insertions(+), 56 deletions(-) diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index d1df2ce..411b16d 100644 --- a/src/mesa/main/macros.h +++

[Mesa-dev] [PATCH 5/6] mesa: remove COPY_4V_CAST() macro

2012-08-27 Thread Brian Paul
From: Brian Paul bri...@vmware.com Only used in one place, and not really needed. --- src/mesa/main/clear.c |2 +- src/mesa/main/macros.h |9 - 2 files changed, 1 insertions(+), 10 deletions(-) diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c index 7cc204b..cfb0600

[Mesa-dev] [PATCH 6/6] mesa: convert a few more macros to inline functions

2012-08-27 Thread Brian Paul
From: Brian Paul bri...@vmware.com --- src/mesa/main/macros.h | 45 ++--- 1 files changed, 22 insertions(+), 23 deletions(-) diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index bc4d1a6..5af9487 100644 --- a/src/mesa/main/macros.h +++

Re: [Mesa-dev] Mesa (master): i965: Double the size of the state cache.

2012-08-27 Thread Kenneth Graunke
On 08/27/2012 03:00 PM, Stéphane Marchesin wrote: On Mon, Aug 27, 2012 at 2:24 PM, Kenneth Graunke k...@kemper.freedesktop.org wrote: Module: Mesa Branch: master Commit: 87cdefed405da1a57a006737297d20ba0c25fa1b URL:

Re: [Mesa-dev] Mesa (master): i965: Double the size of the state cache.

2012-08-27 Thread Stéphane Marchesin
On Mon, Aug 27, 2012 at 8:58 PM, Kenneth Graunke kenn...@whitecape.org wrote: On 08/27/2012 03:00 PM, Stéphane Marchesin wrote: On Mon, Aug 27, 2012 at 2:24 PM, Kenneth Graunke k...@kemper.freedesktop.org wrote: Module: Mesa Branch: master Commit: 87cdefed405da1a57a006737297d20ba0c25fa1b

Re: [Mesa-dev] [PATCH 2/3] i965: Make the param pointer arrays for the WM dynamically sized.

2012-08-27 Thread Stéphane Marchesin
On Mon, Aug 27, 2012 at 2:48 PM, Kenneth Graunke kenn...@whitecape.org wrote: On 08/27/2012 10:49 AM, Eric Anholt wrote: Saves 26.5MB of wasted memory allocation in the l4d2 demo. --- src/mesa/drivers/dri/i965/brw_context.h | 15 --- src/mesa/drivers/dri/i965/brw_fs.cpp