Re: [Mesa-dev] [PATCH] Modified _mesa_align_free to have consistent behavior when dealing with NULL memory address.

2013-12-03 Thread Siavash Eliasi
On 12/03/2013 09:48 PM, Brian Paul wrote: On 11/26/2013 10:59 PM, Siavash Eliasi wrote: --- src/mesa/main/imports.c| 7 +-- src/mesa/math/m_matrix.c | 13 + src/mesa/program/prog_parameter.c | 3 +-- src/mesa/state_tracker/st_cb_texture.c

[Mesa-dev] [PATCH V2] Modified _mesa_align_free to have consistent behavior when dealing with NULL memory address.

2013-12-03 Thread Siavash Eliasi
Revision 2: - Avoiding compile error on MSVC and possible warnings on other compilers. - Added comment regards passing NULL pointer being safe. --- src/mesa/main/imports.c| 14 +- src/mesa/math/m_matrix.c | 13 + src/mesa/program/prog_parameter

Re: [Mesa-dev] [PATCH 00/10] Sharing r600g glMapBuffer optimizations with radeonsi

2013-12-03 Thread Michel Dänzer
On Fre, 2013-11-29 at 18:55 +0100, Marek Olšák wrote: > This series moves the r600_buffer.c files from both drivers to the shared > directory gallium/drivers/radeon, and implements what's missing for radeonsi > to make sharing the code possible. > > This improves Valve's Team Fortress 2 performa

[Mesa-dev] [PATCH] radeonsi: Remove some stale XXX / FIXME comments

2013-12-03 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_pipe.c | 1 - src/gallium/drivers/radeonsi/radeonsi_shader.c | 5 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/

Re: [Mesa-dev] [PATCH] winsys/radeon: set/get the scanout flag with the tiling ioctls

2013-12-03 Thread Michel Dänzer
On Fre, 2013-11-29 at 19:08 +0100, Marek Olšák wrote: > From: Marek Olšák > > If we assume that all buffers allocated by the DDX are scanout, a new flag > that says "this is not scanout" has to be added to support the non-scanout > buffers and maintain backward compatibility. > > This fixes bad

Re: [Mesa-dev] [PATCH 03/15] i965/cfg: Rework to make IF & ELSE blocks flow into ENDIF.

2013-12-03 Thread Matt Turner
On Mon, Dec 2, 2013 at 10:40 AM, Matt Turner wrote: > Previously we made the basic block following an ENDIF instruction a > successor of the basic blocks ending with IF and ELSE. The PRM says that > IF and ELSE instructions jump *to* the ENDIF, rather than over it. > > This should be immaterial to

Re: [Mesa-dev] [PATCH 4/4] radeonsi: Write htile state to SI hardware.

2013-12-03 Thread Michel Dänzer
On Die, 2013-12-03 at 21:33 +0100, Andreas Hartmetz wrote: > > diff --git a/src/gallium/drivers/radeonsi/si_state.c > b/src/gallium/drivers/radeonsi/si_state.c > index 24c9cf3..7b1a6df 100644 > --- a/src/gallium/drivers/radeonsi/si_state.c > +++ b/src/gallium/drivers/radeonsi/si_state.c > @@ -184

Re: [Mesa-dev] [PATCH 2/3] mesa: Verify memory allocations success in _mesa_PushClientAttrib

2013-12-03 Thread Ian Romanick
On 12/03/2013 01:24 PM, Juha-Pekka Heikkilä wrote: > On Tue, Dec 3, 2013 at 6:42 PM, Brian Paul wrote: >> On 12/02/2013 02:39 AM, Juha-Pekka Heikkila wrote: >>> >>> Check if any of the callocs fail and report it with _mesa_error >>> if needed. >>> >>> Signed-off-by: Juha-Pekka Heikkila >>> --- >>

Re: [Mesa-dev] [PATCH 7/9] mesa: Fill out ARB_texture_view entry points

2013-12-03 Thread Courtney Goeltzenleuchter
On Tue, Dec 3, 2013 at 4:28 PM, Brian Paul wrote: > On 12/03/2013 02:56 PM, Courtney Goeltzenleuchter wrote: > >> Hi Brian, >> >> I've made all the recommended changes. >> >> I also added one, a test that the Driver.TextureView != NULL before >> calling. This lets me test the non DD functionality

Re: [Mesa-dev] [PATCH 7/9] mesa: Fill out ARB_texture_view entry points

2013-12-03 Thread Brian Paul
On 12/03/2013 02:56 PM, Courtney Goeltzenleuchter wrote: Hi Brian, I've made all the recommended changes. I also added one, a test that the Driver.TextureView != NULL before calling. This lets me test the non DD functionality with the MESA_EXTENSION_OVERRIDE=+GL_ARB_texture_view I've also reba

Re: [Mesa-dev] [PATCH 3/3] i965: Fix BRW_BATCH_STRUCT to specify RENDER_RING, not UNKNOWN_RING.

2013-12-03 Thread Eric Anholt
Kenneth Graunke writes: > I missed this in the boolean -> enum conversion. C cheerfully casts > false -> 0 -> UNKNOWN_RING. On Gen4-5, this causes the render ring > prelude hook to get called in the middle of the batch, which is crazy. > > BRW_BATCH_STRUCT is not used on Gen6+. > > Fixes regres

Re: [Mesa-dev] [PATCH 3/4] radeonsi: Rearrange si_create_dsa_state

2013-12-03 Thread Alex Deucher
On Tue, Dec 3, 2013 at 5:59 PM, Matt Turner wrote: > On Tue, Dec 3, 2013 at 2:56 PM, Alex Deucher wrote: >> On Tue, Dec 3, 2013 at 3:33 PM, Andreas Hartmetz wrote: >>> Reduce scope of variables and divide the code more clearly into >>> sections dealing with one thing. >>> --- >>> src/gallium/dr

Re: [Mesa-dev] [PATCH 2/4] radeon: Allocate htile buffer for SI in r600_texture.

2013-12-03 Thread Alex Deucher
On Tue, Dec 3, 2013 at 3:33 PM, Andreas Hartmetz wrote: > --- > src/gallium/drivers/radeon/r600_texture.c | 84 > +-- > 1 file changed, 68 insertions(+), 16 deletions(-) > > diff --git a/src/gallium/drivers/radeon/r600_texture.c > b/src/gallium/drivers/radeon/r600_te

Re: [Mesa-dev] [PATCH 3/4] radeonsi: Rearrange si_create_dsa_state

2013-12-03 Thread Matt Turner
On Tue, Dec 3, 2013 at 2:56 PM, Alex Deucher wrote: > On Tue, Dec 3, 2013 at 3:33 PM, Andreas Hartmetz wrote: >> Reduce scope of variables and divide the code more clearly into >> sections dealing with one thing. >> --- >> src/gallium/drivers/radeonsi/si_state.c | 38 >> +++-

Re: [Mesa-dev] [PATCH 4/4] radeonsi: Write htile state to SI hardware.

2013-12-03 Thread Alex Deucher
On Tue, Dec 3, 2013 at 3:33 PM, Andreas Hartmetz wrote: > --- > src/gallium/drivers/radeonsi/si_state.c | 28 +++- > 1 file changed, 27 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/radeonsi/si_state.c > b/src/gallium/drivers/radeonsi/si_state.c > inde

Re: [Mesa-dev] [PATCH 3/4] radeonsi: Rearrange si_create_dsa_state

2013-12-03 Thread Alex Deucher
On Tue, Dec 3, 2013 at 3:33 PM, Andreas Hartmetz wrote: > Reduce scope of variables and divide the code more clearly into > sections dealing with one thing. > --- > src/gallium/drivers/radeonsi/si_state.c | 38 > +++-- > 1 file changed, 22 insertions(+), 16 deletions(

Re: [Mesa-dev] Nesa-dev now integrated with patchwork

2013-12-03 Thread Carl Worth
Carl Worth writes: > When a branch is pushed to the master git repo, a git hook will > automatically search for the patch in the database, and if it is > found, ... At least, that was my intention. I had a couple of permissions problem with the git hook, so it hasn't actually been active. I fix

[Mesa-dev] [Bug 72230] Unable to extract MesaLib-10.0.0.tar.{gz, bz2} with bsdtar

2013-12-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72230 --- Comment #4 from Patrick Steinhardt --- Would it be possible to provide updated tarballs including this fix? -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev m

[Mesa-dev] [Bug 72230] Unable to extract MesaLib-10.0.0.tar.{gz, bz2} with bsdtar

2013-12-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72230 Emil Velikov changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 2/3] mesa: Verify memory allocations success in _mesa_PushClientAttrib

2013-12-03 Thread Juha-Pekka Heikkilä
On Tue, Dec 3, 2013 at 6:42 PM, Brian Paul wrote: > On 12/02/2013 02:39 AM, Juha-Pekka Heikkila wrote: >> >> Check if any of the callocs fail and report it with _mesa_error >> if needed. >> >> Signed-off-by: Juha-Pekka Heikkila >> --- >> src/mesa/main/attrib.c | 34 +

Re: [Mesa-dev] [PATCH] i965: Add extra-alignment for non-msrt fast color clear for all hw (v2)

2013-12-03 Thread Paul Berry
On 3 December 2013 13:12, Chad Versace wrote: > The BSpec states that the aligment for the non-msrt clear rectangle must > be doubled; the BSpec does not restricit the workaround to specific > hardware. > > Commit 9a1a67b applied the workaround to Haswell GT3. Commit 8b659ce > expanded the worka

[Mesa-dev] [PATCH] i965: Add extra-alignment for non-msrt fast color clear for all hw (v2)

2013-12-03 Thread Chad Versace
The BSpec states that the aligment for the non-msrt clear rectangle must be doubled; the BSpec does not restricit the workaround to specific hardware. Commit 9a1a67b applied the workaround to Haswell GT3. Commit 8b659ce expanded the workaround to all Haswell variants. This commit expands it to al

Re: [Mesa-dev] [PATCH 3/3] mesa: Verify memory allocations success in _mesa_PushAttrib

2013-12-03 Thread Juha-Pekka Heikkilä
On Tue, Dec 3, 2013 at 6:51 PM, Ian Romanick wrote: > On 12/02/2013 01:39 AM, Juha-Pekka Heikkila wrote: >> Check if any of the callocs fail and report it with _mesa_error >> if needed. >> >> Signed-off-by: Juha-Pekka Heikkila >> --- >> src/mesa/main/attrib.c | 106 >> ++

Re: [Mesa-dev] [PATCH] glxinfo: print ES2 extension list

2013-12-03 Thread Ian Romanick
I like the idea. I haven't really looked at the code, so... Acked-by: Ian Romanick But there is one comment below... On 12/03/2013 09:58 AM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/xdemos/glxinfo.c | 43 ++- > 1 file changed, 30 insertion

[Mesa-dev] radeonsi htile (aka HyperZ) support

2013-12-03 Thread Andreas Hartmetz
This adds HyperZ support, without fast clear for now. I got a lot of help from Marek with this. There seem to be no piglit regressions; about 60 very basic GL1.0 tests were skipped in my test run for some reason - they looked very unrelated. There was no change in other tests. It does seem to make

[Mesa-dev] [PATCH 2/4] radeon: Allocate htile buffer for SI in r600_texture.

2013-12-03 Thread Andreas Hartmetz
--- src/gallium/drivers/radeon/r600_texture.c | 84 +-- 1 file changed, 68 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 70f21bd..c91fbce 100644 --- a/src/gallium/drivers/radeon/

[Mesa-dev] [PATCH 1/4] radeon: rearrange r600_texture and related code a bit.

2013-12-03 Thread Andreas Hartmetz
This should make the differences and similarities between color and depth buffer handling more clear. --- src/gallium/drivers/r600/evergreen_state.c| 10 ++--- src/gallium/drivers/r600/r600_blit.c | 6 +-- src/gallium/drivers/r600/r600_state.c | 10 ++--- src/gallium/drivers/

[Mesa-dev] [PATCH 3/4] radeonsi: Rearrange si_create_dsa_state

2013-12-03 Thread Andreas Hartmetz
Reduce scope of variables and divide the code more clearly into sections dealing with one thing. --- src/gallium/drivers/radeonsi/si_state.c | 38 +++-- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/galliu

[Mesa-dev] [PATCH 4/4] radeonsi: Write htile state to SI hardware.

2013-12-03 Thread Andreas Hartmetz
--- src/gallium/drivers/radeonsi/si_state.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 24c9cf3..7b1a6df 100644 --- a/src/gallium/drivers/radeonsi/si_state.

Re: [Mesa-dev] [PATCH 1/3] glx: Check malloc return value before accessing memory in glx/clientattrib.c

2013-12-03 Thread Juha-Pekka Heikkilä
On Tue, Dec 3, 2013 at 6:39 PM, Brian Paul wrote: > On 12/02/2013 02:39 AM, Juha-Pekka Heikkila wrote: >> >> Signed-off-by: Juha-Pekka Heikkila >> --- >> src/glx/clientattrib.c | 5 + >> 1 file changed, 5 insertions(+) >> >> diff --git a/src/glx/clientattrib.c b/src/glx/clientattrib.c >> i

[Mesa-dev] [Bug 72281] New: [bisected] Eufloria HD crash on start

2013-12-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72281 Priority: medium Bug ID: 72281 Keywords: regression CC: e...@anholt.net Assignee: mesa-dev@lists.freedesktop.org Summary: [bisected] Eufloria HD crash on start Severity

Re: [Mesa-dev] [PATCH 1/9] i965: Don't print extra (null) arguments in dump_instruction().

2013-12-03 Thread Eric Anholt
Thanks! These are: Reviewed-by: Eric Anholt pgpNXhaJ5J1l2.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH V2 00/17] Newbie Project : Enable ARB_map_buffer_alignment in all drivers

2013-12-03 Thread Eric Anholt
Siavash Eliasi writes: > Hello, this is V2 series of patches to accomplish *Enable > ARB_map_buffer_alignment in all drivers* newbie project suggested by > Ian Romanick. I think there's a piece missing to this, which is this bit of spec text: "If no error occurs, the pointer value returned

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Kenneth Graunke
On 12/03/2013 08:43 AM, Ian Romanick wrote: > Can we please hold off on this? I'm in the process of getting the GLSL > spec updated to match what people actually ship. We've always taken the > approach of following the spec, and if the spec doesn't match reality, > fix the spec. I've done this a

[Mesa-dev] [PATCH] i965/gen7: Apply non-msrt fast color clear w/a to all gen7

2013-12-03 Thread Chad Versace
The BSpec states that for IVB, VLVT, and HSW, the aligment for the non-msrt clear rectangle must be doubled. Commit 9a1a67b applied the workaround to Haswell GT3. Commit 8b659ce expanded the workaround to all Haswell variants. This commit expands it to all Gen7 hardware, as required by the BSpec.

Re: [Mesa-dev] [PATCH] Modified _mesa_align_free to have consistent behavior when dealing with NULL memory address.

2013-12-03 Thread Brian Paul
On 11/26/2013 10:59 PM, Siavash Eliasi wrote: --- src/mesa/main/imports.c| 7 +-- src/mesa/math/m_matrix.c | 13 + src/mesa/program/prog_parameter.c | 3 +-- src/mesa/state_tracker/st_cb_texture.c | 6 ++ src/mesa/swrast/s_texture.c

Re: [Mesa-dev] [PATCH 06/23] i965: Define common register base class shared between both back-ends.

2013-12-03 Thread Francisco Jerez
Francisco Jerez writes: > Petri Latvala writes: >[...] >> Not saying it kosher either way though, calling assignment operator in a >> constructor is iffy :P. The proper way is selecting the correct base >> class constructor to call. >> Again, that probably belongs to a separate clean-up commit

Re: [Mesa-dev] [PATCH] glxinfo: print ES2 extension list

2013-12-03 Thread Brian Paul
On 12/03/2013 10:58 AM, Marek Olšák wrote: From: Marek Olšák --- src/xdemos/glxinfo.c | 43 ++- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c index c9edc6a..a008ea8 100644 --- a/src/xdemos/g

[Mesa-dev] [PATCH] glxinfo: print ES2 extension list

2013-12-03 Thread Marek Olšák
From: Marek Olšák --- src/xdemos/glxinfo.c | 43 ++- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/src/xdemos/glxinfo.c b/src/xdemos/glxinfo.c index c9edc6a..a008ea8 100644 --- a/src/xdemos/glxinfo.c +++ b/src/xdemos/glxinfo.c @@ -760,7 +

Re: [Mesa-dev] [PATCH 7/9] mesa: Fill out ARB_texture_view entry points

2013-12-03 Thread Brian Paul
This looks pretty good. Just a bunch of nitpicks below. On 11/25/2013 05:49 PM, Courtney Goeltzenleuchter wrote: Add Mesa TextureView logic. Incorporate feedback on ARB_texture_view: - Add S3TC VIEW_CLASSes to compatibility table - Use existing _mesa_get_tex_image - Clean up error strings - Us

Re: [Mesa-dev] [PATCH 6/9] mesa: consolidate multiple next_mipmap_level_size

2013-12-03 Thread Brian Paul
On 11/25/2013 05:47 PM, Courtney Goeltzenleuchter wrote: Refactor to make next_mipmap_level_size defined in mipmap.c a _mesa_ helper function that can then be used by texture_view Signed-off-by: Courtney Goeltzenleuchter --- src/mesa/main/mipmap.c | 8 src/mesa/main/mipmap.h

Re: [Mesa-dev] [Mesa-stable] [PATCH v3] egl: add HAVE_LIBDRM define, fix EGL X11 platform

2013-12-03 Thread Chad Versace
On 12/02/2013 09:55 PM, Tapani Pälli wrote: On 12/02/2013 11:06 PM, Chad Versace wrote: On 12/01/2013 01:53 AM, Tapani Pälli wrote: Commit a594cec broke EGL X11 backend by adding dependency between X11 and DRM backends requiring HAVE_EGL_PLATFORM_DRM defined for X11. This patch fixes the issue

Re: [Mesa-dev] [PATCH 8/8] mesa: Remove GL_MESA_texture_array cruft from gl.h

2013-12-03 Thread Brian Paul
On 11/26/2013 04:54 PM, Ian Romanick wrote: From: Ian Romanick glext.h has had all the necessary bits for years. Signed-off-by: Ian Romanick --- include/GL/gl.h | 33 - 1 file changed, 33 deletions(-) For the series: Reviewed-by: Brian Paul

Re: [Mesa-dev] [PATCH 3/3] mesa: Verify memory allocations success in _mesa_PushAttrib

2013-12-03 Thread Ian Romanick
On 12/02/2013 01:39 AM, Juha-Pekka Heikkila wrote: > Check if any of the callocs fail and report it with _mesa_error > if needed. > > Signed-off-by: Juha-Pekka Heikkila > --- > src/mesa/main/attrib.c | 106 > - > 1 file changed, 104 insertions(+),

Re: [Mesa-dev] [PATCH] glx: Add missing null check in gxl/dri2_glx.c

2013-12-03 Thread Brian Paul
On 12/02/2013 07:30 AM, Juha-Pekka Heikkila wrote: Signed-off-by: Juha-Pekka Heikkila --- src/glx/dri2_glx.c | 4 1 file changed, 4 insertions(+) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 3b33312..bfeebed 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -676,

Re: [Mesa-dev] [PATCH 2/3] mesa: Verify memory allocations success in _mesa_PushClientAttrib

2013-12-03 Thread Ian Romanick
On 12/02/2013 01:39 AM, Juha-Pekka Heikkila wrote: > Check if any of the callocs fail and report it with _mesa_error > if needed. > > Signed-off-by: Juha-Pekka Heikkila > --- > src/mesa/main/attrib.c | 34 ++ > 1 file changed, 30 insertions(+), 4 deletions(-) > >

Re: [Mesa-dev] [PATCH 3/3] mesa: Verify memory allocations success in _mesa_PushAttrib

2013-12-03 Thread Brian Paul
On 12/02/2013 02:39 AM, Juha-Pekka Heikkila wrote: Check if any of the callocs fail and report it with _mesa_error if needed. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/attrib.c | 106 - 1 file changed, 104 insertions(+), 2 deletions(

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Ian Romanick
Can we please hold off on this? I'm in the process of getting the GLSL spec updated to match what people actually ship. We've always taken the approach of following the spec, and if the spec doesn't match reality, fix the spec. I've done this about a dozen times over the last 3 years, and I don'

Re: [Mesa-dev] [PATCH 2/3] mesa: Verify memory allocations success in _mesa_PushClientAttrib

2013-12-03 Thread Brian Paul
On 12/02/2013 02:39 AM, Juha-Pekka Heikkila wrote: Check if any of the callocs fail and report it with _mesa_error if needed. Signed-off-by: Juha-Pekka Heikkila --- src/mesa/main/attrib.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/

Re: [Mesa-dev] [PATCH 1/3] glx: Check malloc return value before accessing memory in glx/clientattrib.c

2013-12-03 Thread Brian Paul
On 12/02/2013 02:39 AM, Juha-Pekka Heikkila wrote: Signed-off-by: Juha-Pekka Heikkila --- src/glx/clientattrib.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/glx/clientattrib.c b/src/glx/clientattrib.c index 1b306ea..a26906f 100644 --- a/src/glx/clientattrib.c +++ b/src/glx/cl

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file. (reworked)

2013-12-03 Thread Brian Paul
On 12/03/2013 05:47 AM, Kevin Rogovin wrote: Allow for GLSL shaders to have #extension directive anywhere in source file; during preprocessor, #extension directives are saved to a list rather than being added to the pre-processed string. That list is played back before parsing of pre-processed te

Re: [Mesa-dev] [PATCH 1/4] glsl: Extract functions from loop_analysis::visit(ir_dereference_variable *).

2013-12-03 Thread Pohjolainen, Topi
On Thu, Nov 28, 2013 at 11:41:06AM -0800, Paul Berry wrote: > This function is about to get more complex. > --- > src/glsl/loop_analysis.cpp | 91 > +- > src/glsl/loop_analysis.h | 4 ++ > 2 files changed, 70 insertions(+), 25 deletions(-) > > diff

Re: [Mesa-dev] [PATCH 1/2] glsl: extract function for record comparisons

2013-12-03 Thread Grigori Goronzy
Ping? Can anyone review this, please? Grigori On 27.11.2013 00:15, Grigori Goronzy wrote: --- src/glsl/glsl_types.cpp | 61 +++-- src/glsl/glsl_types.h | 7 ++ 2 files changed, 41 insertions(+), 27 deletions(-) diff --git a/src/glsl/glsl_t

[Mesa-dev] [PATCH 2/2] add MESA_GLSL option to require that #extension directives come before any variable or function declarations, etc (reworked)

2013-12-03 Thread Kevin Rogovin
Add an additional bit flag, GLSL_EXTENSION_STRICT for gl_context#Shader#Flags to require that #extension directives must come before variable or function declarations. The flag is set to on if MESA_GLSL has the option extension_strict_ordering in it. --- src/glsl/glsl_parser_extras.cpp | 7

[Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file. (reworked)

2013-12-03 Thread Kevin Rogovin
Allow for GLSL shaders to have #extension directive anywhere in source file; during preprocessor, #extension directives are saved to a list rather than being added to the pre-processed string. That list is played back before parsing of pre-processed text takes place. --- src/glsl/Makefile.sour

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Rogovin, Kevin
Hi, Thankyou for the beans on ralloc. I will send out a patch sequence shortly that: 1) fixes the formatting issues (spaces, comments, etc) 2) uses ralloc in glcpp_extras.c Best Regards - Kevin Rogovin From: Kenneth Graunke [kenn...@whitecape.org]

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Rogovin, Kevin
Hi, > Yeah...there's a point where you switch from the old code to the new > code, and most bugs would probably bisect to that. In this case, I > think that's fairly unavoidable. > > However, splitting it up into multiple patches would definitely make it > a lot easier to review. So, is it requ

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Kenneth Graunke
On 12/03/2013 12:00 AM, Kevin Rogovin wrote: [snip] > diff --git a/src/glsl/glcpp/glcpp_extras.c b/src/glsl/glcpp/glcpp_extras.c > new file mode 100644 > index 000..1672f9f > --- /dev/null > +++ b/src/glsl/glcpp/glcpp_extras.c > @@ -0,0 +1,126 @@ > +#include > +#include > +#include "glcpp_ext

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Kenneth Graunke
On 12/03/2013 01:00 AM, Rogovin, Kevin wrote: > Hi, > > I appreciate the feedback, however I am having difficulty in figuring out a > -good- way to break up the first patch. The basic beans is that all of it's > parts are needed together for it to even make sense. To be precise, the > changes

Re: [Mesa-dev] [PATCH 06/23] i965: Define common register base class shared between both back-ends.

2013-12-03 Thread Francisco Jerez
Petri Latvala writes: > On 12/02/2013 10:36 PM, Francisco Jerez wrote: >> Would you prefer 'this->operator=(reg);'? >> >> I just remembered... The reason this wouldn't work is that it would >> trigger an implicit conversion from 'backend_reg' to 'fs_reg', causing >> infinite recursion into the f

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Rogovin, Kevin
Hi, I appreciate the feedback, however I am having difficulty in figuring out a -good- way to break up the first patch. The basic beans is that all of it's parts are needed together for it to even make sense. To be precise, the changes consist of: 1) implementation of linked list of #extensi

Re: [Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Kenneth Graunke
On 12/03/2013 12:00 AM, Kevin Rogovin wrote: > Allow for GLSL shaders to have #extension directive > anywhere in source file; during preprocessor, #extension > directives are saved to a list rather than being added > to the pre-processed string. That list is played back > before parsing of pre-pro

[Mesa-dev] [PATCH 2/2] add MESA_GLSL option to require that #extension directives come before any variable or function declarations, etc

2013-12-03 Thread Kevin Rogovin
Add an additional bit flag, GLSL_EXTENSION_STRICT for gl_context#Shader#Flags to require that #extension directives must come before variable of function declarations. The flag is set to on if MESA_GLSL has the option extension_strict_ordering in it. --- src/glsl/glsl_parser_extras.cpp | 6 +++-

[Mesa-dev] [PATCH 1/2] Allow for GLSL shaders to have #extension directive anywhere in source file.

2013-12-03 Thread Kevin Rogovin
Allow for GLSL shaders to have #extension directive anywhere in source file; during preprocessor, #extension directives are saved to a list rather than being added to the pre-processed string. That list is played back before parsing of pre-processed text takes place. --- src/glsl/Makefile.sour