[Mesa-dev] [PATCH 4/5] glsl: Improve error message for interstage interface block mismatch.

2013-07-27 Thread Paul Berry
We're now emitting this error from a point where we have easy access to the name of the block that failed to match, so go ahead and include that in the error message, as we do for intrastage interface block mismatches. --- src/glsl/link_interface_blocks.cpp | 3 ++- 1 file changed, 2 insertions(+)

[Mesa-dev] [PATCH 5/5] glsl: Remove redundant writes to prog->LinkStatus

2013-07-27 Thread Paul Berry
The linker_error() function sets prog->LinkStatus to false. There's no reason for the caller of linker_error() to also do so. --- src/glsl/ir_function_detect_recursion.cpp | 1 - src/mesa/program/ir_to_mesa.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/glsl/ir_function_de

[Mesa-dev] [PATCH 3/5] glsl: Use a consistent technique for tracking link success/failure.

2013-07-27 Thread Paul Berry
This patch changes link_shaders() so that it sets prog->LinkStatus to true when it starts, and then relies on linker_error() to set it to false if a link failure occurs. Previously, link_shaders() would set prog->LinkStatus to true halfway through its execution; as a result, linker functions that

[Mesa-dev] [PATCH 2/5] glsl: Add error message for intrastage interface block mismatch.

2013-07-27 Thread Paul Berry
Previously we failed to link (which is correct), but we did not output an error message, which could have been confusing for users. --- src/glsl/link_interface_blocks.cpp | 5 - src/glsl/linker.cpp| 3 ++- src/glsl/linker.h | 3 ++- 3 files changed, 8 insertion

[Mesa-dev] [PATCH 1/5] glsl: Remove bogus check on return value of link_uniform_blocks().

2013-07-27 Thread Paul Berry
A comment in link_intrastage_shaders(), and an if-test that followed it, seemed to indicate that link_uniform_blocks() would return a negative value in the event of an error. But this is not the case--all error checking has already been performed by validate_intrastage_interface_blocks(), and link

[Mesa-dev] [PATCH 0/5] glsl: Clean up linker error checking.

2013-07-27 Thread Paul Berry
I recently discovered a bug in my geometry shader branch wherein we were responding to certain kinds of link errors by calling linker_error(), but the program was still linking successfully. The root cause turned out to be that during the first half of the execution of link_shaders(), it was not s

[Mesa-dev] [Bug 67411] New: lp_bld_conv.c:757:lp_build_conv: Assertion `dst_type.sign || dst_type.width < 32' failed.

2013-07-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67411 Priority: medium Bug ID: 67411 Keywords: have-backtrace, regression CC: srol...@vmware.com Assignee: mesa-dev@lists.freedesktop.org Summary: lp_bld_conv.c:757:lp_build_conv: Asse

Re: [Mesa-dev] [PATCH 01/12] sso: Create extensions entry points

2013-07-27 Thread Ian Romanick
On 07/27/2013 01:29 AM, gregory hainaut wrote: On Fri, 24 May 2013 16:27:59 -0700 Ian Romanick wrote: I'm finally getting off my lazy behind and reviewing this series. I'll probably only be able to review one or two patches today, but I should be able to get through the rest shortly. So far,

Re: [Mesa-dev] [PATCH] glsl: Less const for glsl_type convenience accessors

2013-07-27 Thread Kenneth Graunke
On 07/26/2013 10:55 PM, Ian Romanick wrote: From: Ian Romanick The second 'const' says that the pointer itself is constant. This in unenforcible in C++, so GCC emits a warning (see) below for each of these functions in every file that includes glsl_types.h. It's a lot of warning spam. ../../

Re: [Mesa-dev] SNORM conversion equation woes

2013-07-27 Thread Roland Scheidegger
That formula 2.2 existed for quite some time and was only used for vertex specification. And then came along textures using that format, and in good OpenGL tradition the old formula was kept for vertex data (I guess the new formula was used for textures because that was what hardware and other spec

Re: [Mesa-dev] [PATCH 2/2] gallivm: fix float->SNORM conversion

2013-07-27 Thread Jose Fonseca
Series looks alright AFAICT. Jose - Original Message - > From: Roland Scheidegger > > Just like the UNORM case we need to use round to nearest, not trunc. > (There's also another problem, we're using the formula for SNORM->float > which will produce a value below -1.0 for the most negat

Re: [Mesa-dev] [PATCH 2/2] tgsi: handle texel swizzles correctly for d3d10-style sample opcodes

2013-07-27 Thread Jose Fonseca
Series looks good to me. You should add a mention of this in src/gallium/docs/source/tgsi.rst too as it is not an obvious feature. Jose - Original Message - > From: Roland Scheidegger > > Same as for gallivm (though these don't quite work correctly in softpipe, > so untested). > --- >

Re: [Mesa-dev] [PATCH] mesa: improve free() cleanup in generate_mipmap_compressed()

2013-07-27 Thread Jose Fonseca
- Original Message - > Free all our temporary buffers in one place at the end of the > function. Fixes memory leak detected by Coverity. > > Note: This is a candidate for the 9.x branches > Cc: mesa-sta...@lists.freedesktop.org > --- > src/mesa/main/mipmap.c | 17 +++-- >

Re: [Mesa-dev] SNORM conversion equation woes

2013-07-27 Thread Jose Fonseca
D3D10 specifies equation 2.3 (and I'm sure so that D3D9). So probably all hardware can handle it. I'm surprised that formula 2.2 even exists, and that OpenGL could have been so lax about it. Jose - Original Message - > Hello all, > > I've been looking at https://bugs.freedesktop.org/s

Re: [Mesa-dev] [PATCH 01/12] sso: Create extensions entry points

2013-07-27 Thread gregory hainaut
On Fri, 24 May 2013 16:27:59 -0700 Ian Romanick wrote: > I'm finally getting off my lazy behind and reviewing this series. I'll > probably only be able to review one or two patches today, but I should > be able to get through the rest shortly. > > So far, it's just little stuff. > Hello. Di

[Mesa-dev] [PATCH v2] i965: Initialize brw_blorp_const_color_program::prog_data.

2013-07-27 Thread Vinson Lee
Fixes "Uninitialized scalar field" defect reported by Coverity. Signed-off-by: Vinson Lee --- src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index f