[Mesa-dev] [PATCH 2/6] glsl: Semantically check the RHS of `&&' even when short-circuiting.

2011-04-09 Thread Eric Anholt
We just do the AST-to-HIR processing, and only push the instructions if needed in the constant true case. Fixes glslparsertest/glsl2/logic-01.frag --- src/glsl/ast_to_hir.cpp | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast

[Mesa-dev] [PATCH 6/6] glsl: Allow instructions to be generated for array size declarations.

2011-04-09 Thread Eric Anholt
The specs only say that they have to be a constant expression, which would allow things like builtin function calls that generate instructions as a side effect of their parsing. Fixes the fixed array-size-constant-relational.vert. --- src/glsl/ast.h|2 +- src/glsl/ast_function.cpp

[Mesa-dev] [PATCH 5/6] glsl: Perform type checking on "^^" operands.

2011-04-09 Thread Eric Anholt
We were letting any old operand through, which generally resulted in assertion failures later. Fixes array-logical-xor.vert. --- src/glsl/ast_to_hir.cpp | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index ea

[Mesa-dev] [PATCH 1/6] glsl: Avoid cascading errors when looking for a scalar boolean and failing.

2011-04-09 Thread Eric Anholt
By always using a boolean, we should generally avoid further complaints. The failure case I see is logic_not, where the user might understandably make the mistake of using `!' on a boolean vector (like a piglit case did recently!), and then get a further complaint that the new boolean type doesn't

[Mesa-dev] [PATCH 4/6] glsl: When we've emitted a semantic error for ==, return a bool constant.

2011-04-09 Thread Eric Anholt
This prevents later errors (including an assertion failure) from cascading the failure. Fixes invalid-equality-04.vert. --- src/glsl/ast_to_hir.cpp | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 108c7c3..ea

[Mesa-dev] stuck-on-an-airplane GLSL fixes.

2011-04-09 Thread Eric Anholt
Here are fixes for a bunch of GLSL (mostly assertion) failures, which were highlighted thanks to the lovely new piglit reports. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 3/6] glsl: Semantically check the RHS of `||' even when short-circuiting.

2011-04-09 Thread Eric Anholt
We just do the AST-to-HIR processing, and only push the instructions if needed in the constant false case. Fixes glslparsertest/glsl2/logic-02.frag --- src/glsl/ast_to_hir.cpp | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast

[Mesa-dev] [PATCH 2/2] i965/fs: Constant-fold immediates in src0 of SEL instructions.

2011-04-09 Thread Eric Anholt
This is like what we do for add/mul, but we have to invert the predicate to choose the other source instead. This removes 5 extra moves of constants in nexuiz shaders. --- src/mesa/drivers/dri/i965/brw_eu.c |5 + src/mesa/drivers/dri/i965/brw_eu.h |1 + src/mesa/drivers/dri/i965/b

[Mesa-dev] [PATCH 1/2] i965/fs: Constant-fold immediates in src0 of CMP instructions.

2011-04-09 Thread Eric Anholt
This is like what we do with add/mul, but we also have to flip the conditional test. --- src/mesa/drivers/dri/i965/brw_eu.c | 22 ++ src/mesa/drivers/dri/i965/brw_eu.h |2 ++ src/mesa/drivers/dri/i965/brw_fs.cpp | 21 + 3 files changed, 45 insert

[Mesa-dev] [PATCH] fix typos in MESA specs

2011-04-09 Thread Nicolas Kaiser
Signed-off-by: Nicolas Kaiser --- docs/MESA_agp_offset.spec |2 +- docs/MESA_drm_image.spec |4 ++-- docs/MESA_multithread_makecurrent.spec |2 +- docs/MESA_pack_invert.spec |2 +- docs/MESA_release_buffers.spec |8 docs/

[Mesa-dev] [Bug 25588] Lots of ARB_vertex_program/fragment_program parser errors in ETQW (if GLSL is unavailable)

2011-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25588 Marek Olšák changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 25588] Lots of ARB_vertex_program/fragment_program parser errors in ETQW (if GLSL is unavailable)

2011-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25588 --- Comment #10 from almos 2011-04-09 09:50:18 PDT --- (In reply to comment #9) > (In reply to comment #8) > > ETQW still shows errors as in comment #5 with current mesa with both r300 > > and > > swrast but not with r300g and swrastg. > > Upda

Re: [Mesa-dev] Vertex distortion bug in xonotic

2011-04-09 Thread Sebastian H.
> does it work with the latest Mesa master branch? Seems to be solved now. The distortions are gone. > Please file a new bug against Mesa : Drivers/Gallium/r300 and attach > your answer there: https://bugs.freedesktop.org/show_bug.cgi?id=36099 ___ mes

Re: [Mesa-dev] Vertex distortion bug in xonotic

2011-04-09 Thread Sebastian H.
> does it work with the latest Mesa master branch? Compiling new kernel 2.6.38 now, as Debian/squeeze's 2.6.32 is too old for libdrm-2.4.24 which is required by git Mesa... > Please file a new bug against Mesa : Drivers/Gallium/r300 and attach > your answer there: > > https://bugs.freedesktop.or

Re: [Mesa-dev] [PATCH 1/2] i965: Add comments about URB size units and limits.

2011-04-09 Thread Eric Anholt
On Fri, 8 Apr 2011 13:16:28 -0700, Kenneth Graunke wrote: > --- > src/mesa/drivers/dri/i965/brw_context.h |8 > src/mesa/drivers/dri/i965/brw_vs_emit.c |6 ++ > src/mesa/drivers/dri/i965/gen6_urb.c| 14 +- > 3 files changed, 23 insertions(+), 5 deletions(-

Re: [Mesa-dev] Mesa (master): i965/fs: Remove broken optimization for live intervals in loops.

2011-04-09 Thread Eric Anholt
On Fri, 08 Apr 2011 17:37:32 -0700, Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 04/08/2011 11:05 AM, Eric Anholt wrote: > > Module: Mesa > > Branch: master > > Commit: 963431829055f63ec94d88c97a5d07d30e49833a > > URL: > > http://cgit.freedesktop.org/mesa/mesa/