[Mesa-dev] [PATCH 01/10] intel: Add fields to intel_texture for faking s8z24 with separate stencil

2011-06-23 Thread Chad Versace
Add the fields depth_rb and stencil_rb, and put hooks in place to release the renderbuffers in intelFreeTextureImageData and intelTexImage. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_tex.c |9 +++

[Mesa-dev] [PATCH 02/10] intel: Define functions intel_texture_s8z24_scatter/gather

2011-06-23 Thread Chad Versace
... which copy the stencil bits between intel_image-depth_rb and intel_image-stencil_rb. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_tex_image.c | 70 ++ 1 files changed, 70 insertions(+), 0 deletions(-) diff --git

[Mesa-dev] [PATCH 03/10] intel: Perform gather on s8z24 texture images during glGetTexImage

2011-06-23 Thread Chad Versace
Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_tex_image.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index 6065238..4a29bc5

[Mesa-dev] [PATCH 04/10] intel: Change signature of intel_create_wrapped_renderbuffer

2011-06-23 Thread Chad Versace
Redeclare as non-static because intel_tex_image_s8z24_create_renderbuffers will use it. Remove the 'wrapper' parameter, because there is no wrapper for intel_texture_image.depth_rb and stencil_rb. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_fbo.c | 30

[Mesa-dev] [PATCH 05/10] intel: Declare some functions in intel_fbo.c as non-static

2011-06-23 Thread Chad Versace
... because they will be needed by intel_tex_image_s8z24_create_renderbuffers. Redeclared functions are: intel_alloc_renderbuffer_storage intel_renderbuffer_set_draw_offsets Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_fbo.c |4 ++--

[Mesa-dev] [PATCH 06/10] intel: During glTexImage, allocate renderbuffers for faking s8z24 textures

2011-06-23 Thread Chad Versace
... when using separate stencil. Define function intel_tex_image_x8z24_create_renderbuffers and call it in intelTexImage after the miptree has been created and filled with data. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_tex_image.c | 62

[Mesa-dev] [PATCH 08/10] intel: In intel_update_wrapper, support s8z24 textures when using separate stencil

2011-06-23 Thread Chad Versace
Also, in order to coerce intel_update_tex_wrapper_regions() to allocate the hiz region, alter intel_update_tex_wrapper_regions() to examine the renderbuffer format instead of the texture image format. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_fbo.c |

[Mesa-dev] [PATCH 09/10] intel: Change framebuffer validation criteria

2011-06-23 Thread Chad Versace
Since all infrastructure is now in place to support packed depth/stencil renderbuffers when using separate stencil, there is no need for special cases when separate stencil is enabled. Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/intel/intel_fbo.c | 13

[Mesa-dev] [PATCH 10/10] intel: Fix workaround for _mesa_update_framebuffer

2011-06-23 Thread Chad Versace
In intel_draw_buffer, there exists a workaround to prevent _mesa_update_framebuffer from creating a swrast depth wrapper when using separate stencil. This commit fixes the workaround, which was incomplete for s8z24 texture renderbuffers. Fixes fbo-blit-d24s8 on gen5 with separate stencil manually

[Mesa-dev] [Bug 38599] New: THe value of WGL_PBUFFER_HEIGHT_ARB is returned as width in wglQueryPbufferARB

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38599 Summary: THe value of WGL_PBUFFER_HEIGHT_ARB is returned as width in wglQueryPbufferARB Product: Mesa Version: 7.10 Platform: x86 (IA32) OS/Version: Windows (All)

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Benjamin Franzke
2011/6/23 Chia-I Wu olva...@gmail.com: On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: Hi List, This series adds a graphics buffer management library which is targeted to be used as native (drm) platform for egl on kms or openwfd, and thus replaces

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Chia-I Wu
On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: Hi List, This series adds a graphics buffer management library which is

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Benjamin Franzke
2011/6/23 Chia-I Wu olva...@gmail.com: On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Wed, Jun 22, 2011 at 10:30 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: Hi List, This series adds a

[Mesa-dev] [Bug 38602] New: [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 Summary: [bisected] Wrong display after prefer native texture formats when possible commit Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #3 from Jure Repinc jlp.b...@gmail.com 2011-06-23 05:05:55 PDT --- I forgot to mention: the graphics card used is ATI Mobility Radeon HD 5470 -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #4 from Jure Repinc jlp.b...@gmail.com 2011-06-23 05:16:23 PDT --- Created an attachment (id=48332) -- (https://bugs.freedesktop.org/attachment.cgi?id=48332) Xorg.0.log -- Configure bugmail:

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #5 from Jure Repinc jlp.b...@gmail.com 2011-06-23 05:18:03 PDT --- Created an attachment (id=48333) -- (https://bugs.freedesktop.org/attachment.cgi?id=48333) dmesg -- Configure bugmail:

[Mesa-dev] [PATCH] r600g: Add R8G8B8A8_UNORM to evergreen colorswap table

2011-06-23 Thread Benjamin Franzke
Fixes broken glTexImage2D with format=GL_RGBA since 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 The origin for this behaviour is that r600_is_format_supported checks only against r600_state_inline.h tables not evergreens. --- src/gallium/drivers/r600/eg_state_inlines.h |1 + 1 files changed, 1

[Mesa-dev] [Bug 38599] THe value of WGL_PBUFFER_HEIGHT_ARB is returned as width in wglQueryPbufferARB

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38599 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #6 from Brian Paul bri...@vmware.com 2011-06-23 06:38:21 PDT --- Created an attachment (id=48334) View: https://bugs.freedesktop.org/attachment.cgi?id=48334 Review: https://bugs.freedesktop.org/review?bug=38602attachment=48334 try

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-23 Thread Jerome Glisse
On Wed, Jun 22, 2011 at 10:49 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Wed, Jun 22, 2011 at 10:12 PM, Roland Scheidegger srol...@vmware.com wrote: Am 21.06.2011 20:59, schrieb Sven Arvidsson: This change broke a whole lot of stuff on r600g, for example Unigine Heaven:       shader

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #7 from Brian Paul bri...@vmware.com 2011-06-23 07:18:13 PDT --- BTW, I've added a new piglit test that catches the regression from the commit in question: texture-packed-formats -- Configure bugmail:

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-23 Thread Roland Scheidegger
Am 23.06.2011 16:09, schrieb Jerome Glisse: On Wed, Jun 22, 2011 at 10:49 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Wed, Jun 22, 2011 at 10:12 PM, Roland Scheidegger srol...@vmware.com wrote: Am 21.06.2011 20:59, schrieb Sven Arvidsson: This change broke a whole lot of stuff on r600g,

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-23 Thread Jerome Glisse
On Thu, Jun 23, 2011 at 10:38 AM, Roland Scheidegger srol...@vmware.com wrote: Am 23.06.2011 16:09, schrieb Jerome Glisse: On Wed, Jun 22, 2011 at 10:49 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Wed, Jun 22, 2011 at 10:12 PM, Roland Scheidegger srol...@vmware.com wrote: Am 21.06.2011

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-23 Thread Alex Deucher
On Thu, Jun 23, 2011 at 10:38 AM, Roland Scheidegger srol...@vmware.com wrote: Am 23.06.2011 16:09, schrieb Jerome Glisse: On Wed, Jun 22, 2011 at 10:49 PM, Alex Deucher alexdeuc...@gmail.com wrote: On Wed, Jun 22, 2011 at 10:12 PM, Roland Scheidegger srol...@vmware.com wrote: Am 21.06.2011

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #8 from Brian Paterni bpate...@gmail.com 2011-06-23 08:13:44 PDT --- (In reply to comment #6) Created an attachment (id=48334) View: https://bugs.freedesktop.org/attachment.cgi?id=48334 Review:

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-23 Thread Christoph Bumiller
On 23.06.2011 04:12, Roland Scheidegger wrote: Am 21.06.2011 20:59, schrieb Sven Arvidsson: This change broke a whole lot of stuff on r600g, for example Unigine Heaven: shader uses too many varying components (36 32) It looks like the r600g driver claims to only support 10 varyings,

[Mesa-dev] [Bug 38610] New: [regression] 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 broke ETQW

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38610 Summary: [regression] 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 broke ETQW Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW

[Mesa-dev] [Bug 38610] [regression] 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 broke ETQW

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38610 --- Comment #1 from Chris Bandy cba...@jbandy.com 2011-06-23 10:18:24 PDT --- bug 38602 -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the

[Mesa-dev] [Bug 38610] [regression] 1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 broke ETQW

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38610 Sven Arvidsson s...@whiz.se changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 Sven Arvidsson s...@whiz.se changed: What|Removed |Added CC||s...@whiz.se --- Comment

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 --- Comment #10 from Sven Arvidsson s...@whiz.se 2011-06-23 10:29:24 PDT --- FWIW, the same commit causes the game ETQW to segfault on start, and log these errors: EE eg_state_inlines.h:388 r600_translate_colorswap - unsupported colorswap format

Re: [Mesa-dev] [PATCH 2/2] glsl: never enable unsupported extensions (bug 38015)

2011-06-23 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/15/2011 04:26 PM, Paul Berry wrote: For some extensions, _mesa_glsl_process_extension() only checked whether the extension was supported *after* enabling it. Modified the logic to always check first, and only enable supported extensions.

Re: [Mesa-dev] [PATCH 00/10] intel: Support s8z24 texture renderbuffers when using separate stencil

2011-06-23 Thread Chad Versace
On Thu, 23 Jun 2011 02:23:53 -0700, Chad Versace c...@chad-versace.us wrote: On gen5 there are no Piglit regressions, with and without separate stencil enabled. Correction: There are no Piglit regressions except those caused by the stencil write mystery. - Chad

Re: [Mesa-dev] Upcoming Mesa releases

2011-06-23 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/07/2011 12:13 PM, Ian Romanick wrote: We've accumulated a lot of fixes in the 7.10 branch, so it seems like we should do a 7.10.3 release soon. How do Friday (6/10) or Monday (6/13) sound? There's also a huge number of changes sitting in

Re: [Mesa-dev] [PATCH 1/2] vbo: Don't bother checking for stride == 0 for any varying in a VBO.

2011-06-23 Thread Eric Anholt
On Fri, 17 Jun 2011 14:43:21 -0600, Brian Paul bri...@vmware.com wrote: On 06/17/2011 02:36 PM, Eric Anholt wrote: We would still want to consider that data as being in a VBO even if we managed to produce this case, which as far as I know we can't. --- src/mesa/vbo/vbo_rebase.c |3

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 Brian Paul bri...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 38602] [bisected] Wrong display after prefer native texture formats when possible commit

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38602 Brian Paul bri...@vmware.com changed: What|Removed |Added CC||v...@vmware.com ---

[Mesa-dev] [Bug 38622] [bisected] EGL assertion failure in many ES2 applications

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38622 Ian Romanick i...@freedesktop.org changed: What|Removed |Added CC||i...@freedesktop.org,

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Chia-I Wu
On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Wed, Jun 22, 2011 at 10:30 PM,

[Mesa-dev] [Bug 38626] New: vbo: Don't discount stride breaks piglit on softpipe/r600g

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38626 Summary: vbo: Don't discount stride breaks piglit on softpipe/r600g Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity:

[Mesa-dev] [Bug 38626] vbo: Don't discount stride breaks piglit on softpipe/r600g

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38626 --- Comment #1 from Brian Paul bri...@vmware.com 2011-06-23 17:39:18 PDT --- Created an attachment (id=48361) View: https://bugs.freedesktop.org/attachment.cgi?id=48361 Review: https://bugs.freedesktop.org/review?bug=38626attachment=48361

[Mesa-dev] [PATCH] indices: fix conversion of PIPE_PRIM_POLYGON to lines

2011-06-23 Thread Brian Paul
When the fill mode is PIPE_POLYGON_MODE_LINE we were basically converting the polygon into triangles, then drawing the outline of all the triangles. But we really only want to draw the lines around the perimeter of the polygon, not the interior lines. NOTE: This is a candidate for the 7.10

[Mesa-dev] [Bug 38626] vbo: Don't discount stride breaks piglit on softpipe/r600g

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38626 --- Comment #2 from Rafael Monica monr...@gmail.com 2011-06-23 17:57:06 PDT --- Yeah, the patch fixes the regression. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because:

Re: [Mesa-dev] Status of the GLSL-TGSI translator

2011-06-23 Thread Brian Paul
On 06/22/2011 08:51 PM, Bryan Cain wrote: On 06/16/2011 12:43 PM, Brian Paul wrote: On 06/16/2011 10:34 AM, Bryan Cain wrote: On Thu, Jun 16, 2011 at 9:08 AM, Brian Paulbri...@vmware.com mailto:bri...@vmware.com wrote: Looks like nice work, Bryan. Just a few minor

[Mesa-dev] RFC: ctx-Driver.Map/UnmapTextureImage() hooks

2011-06-23 Thread Brian Paul
I'd like to overhaul the part of Mesa related to texture memory reading/writing. The basic idea would be to add two new driver functions: /** * Map a 2D slice of a texture image into user space. * (x,y,w,h) defines a region of interest (ROI). Reading/writing * texels outside of the ROI

[Mesa-dev] [Bug 38629] New: openarena textures blacked out

2011-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38629 Summary: openarena textures blacked out Product: Mesa Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium

Re: [Mesa-dev] [PATCH 0/8] GBM Graphics Buffer Manager

2011-06-23 Thread Chia-I Wu
On Fri, Jun 24, 2011 at 8:38 AM, Chia-I Wu olva...@gmail.com wrote: On Thu, Jun 23, 2011 at 8:07 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23 Chia-I Wu olva...@gmail.com: On Thu, Jun 23, 2011 at 7:46 PM, Benjamin Franzke benjaminfran...@googlemail.com wrote: 2011/6/23

[Mesa-dev] [PATCH 1/4] mesa: remove unused function _mesa_new_depthstencil_renderbuffer

2011-06-23 Thread Marek Olšák
--- src/mesa/main/renderbuffer.c | 23 --- src/mesa/main/renderbuffer.h |3 --- 2 files changed, 0 insertions(+), 26 deletions(-) diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index fa884c0..c36175c 100644 --- a/src/mesa/main/renderbuffer.c

[Mesa-dev] [PATCH 2/4] mesa: fix texstore of DEPTH24_STENCIL8 if srcFormat is STENCIL_INDEX

2011-06-23 Thread Marek Olšák
NOTE: This is a candidate for the 7.10 branch. --- src/mesa/main/texstore.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 6da3e4e..5c925a3 100644 --- a/src/mesa/main/texstore.c +++

[Mesa-dev] [PATCH 3/4] mesa: fix a memory leak in _mesa_unpack_depth_span

2011-06-23 Thread Marek Olšák
NOTE: This is a candidate for the 7.10 branch. --- src/mesa/main/pack.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index d6470e3..7d541dc 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -4782,6 +4782,7 @@

[Mesa-dev] [PATCH 4/4] mesa: don't allocate memory in _mesa_unpack_depth_span if we don't need it

2011-06-23 Thread Marek Olšák
--- src/mesa/main/pack.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index 7d541dc..a232a51 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -4683,7 +4683,7 @@ _mesa_unpack_depth_span( struct

[Mesa-dev] [PATCH] mesa/program: split reference program into hot/cold paths.

2011-06-23 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com inline the hotpath of the reference remaining the same, this shouldn't penalise the slow path at all but improve the hot path so we don't have to jump to the function. It also moves some assert checks under an #ifndef NDEBUG. Signed-off-by: Dave Airlie