Re: [Mesa-dev] [PATCH] glsl: Reallow precision qualifiers on structure members

2013-08-30 Thread Ian Romanick
On 08/30/2013 03:34 PM, Kenneth Graunke wrote: > On 08/30/2013 02:35 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> Changes to the grammar for GL_ARB_shading_language_420pack (commit >> 6eec502) moved precision qualifiers out of the type_specifier production >> chain. This caused declaration

[Mesa-dev] [PATCH 4/4] glsl: Remove unused prog parameter from tfeedback_decl::init

2013-08-30 Thread Ian Romanick
From: Ian Romanick It looks like commit 53febac removed the last user of that parameter. Signed-off-by: Ian Romanick Cc: Paul Berry --- src/glsl/link_varyings.cpp | 6 +++--- src/glsl/link_varyings.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/glsl/link_varyi

[Mesa-dev] [PATCH 3/4] glsl: Validate qualifiers on VS color outputs with FS color inputs

2013-08-30 Thread Ian Romanick
From: Ian Romanick The vertex shader color outputs (gl_FrontColor, gl_BackColor, gl_FrontSecondaryColor, and gl_BackSecondaryColor) don't have the same names as the matching fragment shader color inputs (gl_Color and gl_SecondaryColor). As a result, the qualifiers on them were not being properly

[Mesa-dev] [PATCH 2/4] glsl: Copy ir_variable::assigned and ir_variable::used fields in ::clone method

2013-08-30 Thread Ian Romanick
From: Ian Romanick Nothing currently relies on this, but one of the next patches will. Signed-off-by: Ian Romanick --- src/glsl/ir_clone.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/ir_clone.cpp b/src/glsl/ir_clone.cpp index 9d4178d..a75b3b7 100644 --- a/src/glsl/ir_clone

[Mesa-dev] [PATCH 1/4] glsl: Refactor a bunch of the code out of cross_validate_outputs_to_inputs

2013-08-30 Thread Ian Romanick
From: Ian Romanick The new function, cross_validate_types_and_qualifiers, will have multiple callers from this file in future commits. Signed-off-by: Ian Romanick --- src/glsl/link_varyings.cpp | 171 + 1 file changed, 94 insertions(+), 77 deletions(

Re: [Mesa-dev] [PATCH] glsl: Reallow precision qualifiers on structure members

2013-08-30 Thread Kenneth Graunke
On 08/30/2013 02:35 PM, Ian Romanick wrote: From: Ian Romanick Changes to the grammar for GL_ARB_shading_language_420pack (commit 6eec502) moved precision qualifiers out of the type_specifier production chain. This caused declarations such as: struct S { lowp float f; }; t

Re: [Mesa-dev] [PATCH] glsl: Reallow precision qualifiers on structure members

2013-08-30 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling.

2013-08-30 Thread Marek Olšák
The Gallium changes look good to me. Marek On Thu, Aug 15, 2013 at 12:47 PM, Axel Davy wrote: > Signed-off-by: Axel Davy > --- > include/GL/internal/dri_interface.h | 1 + > src/gallium/drivers/i915/i915_resource.c| 8 ++-- > src/gallium/drivers/ilo/ilo_resource.c | 2 +- >

[Mesa-dev] [PATCH] glsl: Reallow precision qualifiers on structure members

2013-08-30 Thread Ian Romanick
From: Ian Romanick Changes to the grammar for GL_ARB_shading_language_420pack (commit 6eec502) moved precision qualifiers out of the type_specifier production chain. This caused declarations such as: struct S { lowp float f; }; to generate parse errors. Section 4.1.8 (Structur

Re: [Mesa-dev] [PATCH 1/2] radeonsi: Expose pure integer vertex formats

2013-08-30 Thread Marek Olšák
Reviewed-by: Marek Olšák Sorry that my email addresses in reviewed-by's aren't consistent. Old habits die hard. You can use this one for both patches. Marek On Fri, Aug 30, 2013 at 5:48 PM, Michel Dänzer wrote: > From: Michel Dänzer > > Fixes 20 piglit tests with MESA_GL_VERSION_OVERRIDE=3.0.

Re: [Mesa-dev] [PATCH 2/2] radeonsi: Don't save/restore FMASK sampler view states for u_blitter

2013-08-30 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Aug 30, 2013 at 5:48 PM, Michel Dänzer wrote: > From: Michel Dänzer > > Fixes assertion failues in 24 piglit tests with > MESA_GL_VERSION_OVERRIDE=3.0, 12 of which are now passing. > > Signed-off-by: Michel Dänzer > --- > src/gallium/drivers/radeonsi/r6

Re: [Mesa-dev] [PATCH 5/6] i965: Rename "prim" parameter to "prims" where it's an array.

2013-08-30 Thread Paul Berry
On 28 August 2013 16:49, Kenneth Graunke wrote: > Some drawing functions take a single _mesa_prim object, while others > take an array of primitives. Both kinds of functions used a parameter > called "prim" (the singular form), which was confusing. > > Using the plural form, "prims," clearly com

Re: [Mesa-dev] [PATCH 6/6] mesa: Rename gl_context::swtnl_im to vbo_context; use proper type.

2013-08-30 Thread Paul Berry
On 28 August 2013 16:49, Kenneth Graunke wrote: > The main GL context's swtnl_im field is the VBO module's vbo_context > structure. Using the name "swtnl" in the name is confusing since > some drivers use hardware texturing and lighting, but still rely on the > VBO module for drawing. > > v2: Fo

Re: [Mesa-dev] [PATCH 4/6] i965: Clarify that we only check one prim's type for cut index support.

2013-08-30 Thread Paul Berry
On 30 August 2013 10:36, Eric Anholt wrote: > Kenneth Graunke writes: > > > can_cut_index_handle_prims() was passed an array of _mesa_prim objects > > and a count, and runs a loop for that many iterations. However, it > > treats the array like a pointer, repeatedly checking the first element. >

Re: [Mesa-dev] [PATCH 2/6] i965: Combine brw_emit_prim and gen7_emit_prim.

2013-08-30 Thread Paul Berry
On 28 August 2013 16:49, Kenneth Graunke wrote: > These functions have almost identical code; the only difference is that > a few of the bits moved around. Adding a few trivial conditionals > allows the same function to work on all generations, and the resulting > code is still quite readable. >

Re: [Mesa-dev] [PATCH 1/6] i965: Remove unused ATTRIB_BIT_DWORDS define.

2013-08-30 Thread Eric Anholt
All but patch 4 are: Reviewed-by: Eric Anholt pgpQctwfJftck.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 4/6] i965: Clarify that we only check one prim's type for cut index support.

2013-08-30 Thread Eric Anholt
Kenneth Graunke writes: > can_cut_index_handle_prims() was passed an array of _mesa_prim objects > and a count, and runs a loop for that many iterations. However, it > treats the array like a pointer, repeatedly checking the first element. > > This is wasteful and bizarre. > > The VBO module wil

Re: [Mesa-dev] [PATCH 21/22] i965/gen7: Generalize gen7_vs_state in preparation for GS.

2013-08-30 Thread Eric Anholt
Kenneth Graunke writes: > On 08/29/2013 04:06 PM, Eric Anholt wrote: >> emit_constants(3DSTATE_CONSTANT_VS, &brw->vs.stage_state); > > I'm fine with putting the constant emission into a helper function. > Although it's simple code, it's quite a few lines, so factoring it out > would make th

[Mesa-dev] [PATCH 1/3] softpipe: check if so_target is NULL before accessing it

2013-08-30 Thread sroland
From: Roland Scheidegger No idea if this is working right but copied straight from llvmpipe. (Not only does this check the so_target but also use buffer->data instead of buffer for the mapping.) Just trying to get rid of a segfault testing something else... --- src/gallium/drivers/softpipe/sp_dr

Re: [Mesa-dev] glsl: memory leak in parsing extension statements?

2013-08-30 Thread Paul Berry
On 28 August 2013 05:26, Aras Pranckevicius wrote: > Hi, > > Looking at the code, is there a potential memory leak in GLSL parser wrt > extension statements? > > glsl_lexer.ll has: > [_a-zA-Z][_a-zA-Z0-9]* { > yylval->identifier = strdup(yytext); > return IDENTIFIER; > } > > i

[Mesa-dev] [PATCH 1/2] radeonsi: Expose pure integer vertex formats

2013-08-30 Thread Michel Dänzer
From: Michel Dänzer Fixes 20 piglit tests with MESA_GL_VERSION_OVERRIDE=3.0. Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_state.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeons

[Mesa-dev] [PATCH 2/2] radeonsi: Don't save/restore FMASK sampler view states for u_blitter

2013-08-30 Thread Michel Dänzer
From: Michel Dänzer Fixes assertion failues in 24 piglit tests with MESA_GL_VERSION_OVERRIDE=3.0, 12 of which are now passing. Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/r600_blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/rad

Re: [Mesa-dev] [PATCH 3/3] gallivm: handle unbound textures in texture sampling / texture queries

2013-08-30 Thread Zack Rusin
Same here. - Original Message - > Series LGTM. > > Jose > > - Original Message - > > From: Roland Scheidegger > > > > Turns out we don't need to do much extra work for detecting this case, > > since we are guaranteed to get a empty static texture state in this case, > > hence j

Re: [Mesa-dev] [PATCH] draw: fix PIPE_MAX_SAMPLER/PIPE_MAX_SHADER_SAMPLER_VIEWS issues

2013-08-30 Thread Zack Rusin
Looks good. Reviewed-by: Zack Rusin - Original Message - > From: Roland Scheidegger > > pstipple/aaline stages used PIPE_MAX_SAMPLER instead of > PIPE_MAX_SHADER_SAMPLER_VIEWS when dealing with sampler views. > Now these stages can't actually handle sampler_unit != texture_unit anyway

[Mesa-dev] [PATCH] draw: fix PIPE_MAX_SAMPLER/PIPE_MAX_SHADER_SAMPLER_VIEWS issues

2013-08-30 Thread sroland
From: Roland Scheidegger pstipple/aaline stages used PIPE_MAX_SAMPLER instead of PIPE_MAX_SHADER_SAMPLER_VIEWS when dealing with sampler views. Now these stages can't actually handle sampler_unit != texture_unit anyway (they cannot work with d3d10 shaders at all due to using tex not sample opcode

[Mesa-dev] [PATCH 3/3] gallivm: handle unbound textures in texture sampling / texture queries

2013-08-30 Thread sroland
From: Roland Scheidegger Turns out we don't need to do much extra work for detecting this case, since we are guaranteed to get a empty static texture state in this case, hence just rely on format being 0 and return all zero then. Previously needed dummy textures (would just have crashed on format

[Mesa-dev] [PATCH 2/3] softpipe: handle NULL sampler views for texture sampling / queries

2013-08-30 Thread sroland
From: Roland Scheidegger Instead of crashing just return all zero. --- src/gallium/auxiliary/tgsi/tgsi_exec.c |1 + src/gallium/drivers/softpipe/sp_tex_sample.c | 30 +- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/gallium/auxiliary/tgsi

Re: [Mesa-dev] [PATCH 3/3] gallivm: handle unbound textures in texture sampling / texture queries

2013-08-30 Thread Jose Fonseca
Series LGTM. Jose - Original Message - > From: Roland Scheidegger > > Turns out we don't need to do much extra work for detecting this case, > since we are guaranteed to get a empty static texture state in this case, > hence just rely on format being 0 and return all zero then. > Previo

Re: [Mesa-dev] [PATCH 2/2] gallivm: (trivial) don't pass sampler_unit variable down to filtering funcs

2013-08-30 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > From: Roland Scheidegger > > The only reason this was needed was because the fetch texel function had to > get the (dynamic) border color, but this is now done much earlier. > --- > src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c |