summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-08-11glsl2: remove stray semicolonBrian Paul
2010-08-11glsl2: added casts to silence warningsBrian Paul
2010-08-11glsl2: add cast to silence warningBrian Paul
2010-08-11glsl2: remove stray semicolonBrian Paul
2010-08-11glsl2: move declarations before codeBrian Paul
2010-08-11glsl2: remove trailing comma to silence warningBrian Paul
2010-08-11glcpp: Clean up intermediate file when test suite is interrupted.Carl Worth
The glcpp-test script was leaving around bogus *.valgrind-errors files if a valgrind test was interrupted.
2010-08-11glcpp: Regenerate glcpp-parse.cCarl Worth
After a recent change to glcpp-parse.y
2010-08-11glcpp: Additional fixes for not evaluating skipped #if/#elif expressions.Carl Worth
This adds a couple of test cases to expand our coverage of invalid #if and being skipped, (either by being nested inside an #if/#elif that evaluates to zero or by being after an #if/#elif that evaluates to non-zero).
2010-08-10glcpp/tests: Commit forgotten file 074-elif-undef.c.expected.Kenneth Graunke
2010-08-10texture_builtins.py: Remove useless comments.Kenneth Graunke
2010-08-10glcpp: Discard output of cmp when running the test suite.Carl Worth
We're already using the return-value of cmp to print either PASS or FAIL and in the case of failure, we're subsequently running and showing the output of diff. So any warnings/errors from cmp itself are not actually needed, and can be quite confusing.
2010-08-10glcpp: Fix expected result for the 064-version.c test.Carl Worth
Commit d4a04f315560704bf1103df0b93723e468725df7 caused this test case to produce an additional blank line, which is otherwise harmless, but does need to be reflected in the .expected file for the test to pass.
2010-08-10glcpp: Regnerate glcpp-parse.c and glcpp-parse.hCarl Worth
After making a minor change to the .y file.
2010-08-10glcpp: Initialize location structure at beginning of parse.Carl Worth
Since we have a custom structure for YYLTYPE locations, we need to use an %initial-action directive to avoid triggering use of uninitialized memory when, for example, printing error messages. We apparently don't yet have a test case that allowed valgrind to find this bug for us, but valgrind found a similar problem in the other parser, so we fix this one as well.
2010-08-10glsl2: Regenerate glsl_parser.cpp and glsl_parser.hCarl Worth
After making a minor change to the .y file.
2010-08-10glsl2: Initialize location structure at beginning of parse.Carl Worth
Since we have a custom structure for YYLTYPE locations, we need to use an %initial-action directive to avoid triggering use of uninitialized memory when, for example, printing error messages. Thanks to valgrind for noticing this bug.
2010-08-09glsl2: Make ir_algebraic reassociate add/mul operands for constant folding.Eric Anholt
It's rather easy to produce two constant multiplies separated by other multiplies while writing a BRDF shader, and non-obvious enough in the resulting codegen that I didn't catch it in my demo code until just recently. Cuts 3 965 instructions from my demo (<1%), and 20 from glsl-fs-raytrace (1.3%).
2010-08-09glsl2: Add a pass to transform ir_binop_sub to add(op0, neg(op1))Eric Anholt
All the current HW backends transform subtract to adding the negation, so I haven't bothered peepholing it back out in Mesa IR. This allows some subtract of subtract to get removed in ir_algebraic.
2010-08-09glsl2: Add constant propagation.Eric Anholt
Whereas constant folding evaluates constant expressions at rvalue nodes, constant propagation tracks constant components of vectors across execution to replace (possibly swizzled) variable dereferences with constant values, triggering possible constant folding or reduced variable liveness.
2010-08-09i965: More s/stderr/stdout/ for program debug.Eric Anholt
2010-08-09glsl2: Teach copy propagation about "if" and "loop" instructions.Eric Anholt
This lets us track copies across basic block boundaries. The loop doesn't get a filled out list of available copies into it yet, though. glsl-fs-raytrace drops from 585 to 535 Mesa IR instructions out of the compiler, and it appears that Yo Frankie's largest shaders decrease in Mesa IR count by about 10% as well.
2010-08-09glsl2: Refresh autogenerated file builtin_function.cpp.Kenneth Graunke
2010-08-09texture_builtins.py: Fix cut and paste errors in function names.Kenneth Graunke
Some signatures were being generated with the wrong function name.
2010-08-09glsl2: Use gl_DepthRange's proper name.Kenneth Graunke
It was being incorrectly added as gl_DepthRangeParameters, which is the type name, not the variable name.
2010-08-09ir_algebraic: Support other comparisons in ir_unop_logic_notIan Romanick
2010-08-09ir_algebraic: Convert ir_unop_logic_not handler to use a switch statementIan Romanick
Currently only ir_binop_equal and ir_binop_nequal are supported, but soon all of the relational operators will be added. Making this change now will simplify those commits.
2010-08-09glsl2: do not use __retval name; two underscores is reserved word according ↵Aras Pranckevicius
to GLSL spec (and Win7 ATI drivers do complain about that)
2010-08-09glsl: fix missing return in ir_structure_splittingAras Pranckevicius
2010-08-08glsl2: Handle plain variable copies in struct splitting.Eric Anholt
glsl-fs-raytrace goes from 620 Mesa IR instructions out of the compiler to 585.
2010-08-07glsl2: Add the 1.30 reserved keywords.Kenneth Graunke
2010-08-06ir_function_inlining: Fix missing iter.next() in inlining sampler params.Aras Pranckevicius
Fixes glsl-fs-function-samplers.
2010-08-06copy_propagation: do propagation into non-out call paramsAras Pranckevicius
2010-08-06glsl2: Move gl_program->InputsRead/OutputsWritten setting to an ir pass.Eric Anholt
This lets us handle arrays much better than trying to work backwards from assembly. Fixes fbo-drawbuffers-maxtargets on swrast (i965 needs loop unrolling)
2010-08-06r600g: fix color format, indentation, definesJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06Revert "r600g: don't use dynamic state allocation for states"Jerome Glisse
This reverts commit 9c949d4a4dd43b7889e13bdf683bcf211f049ced. Conflicts: src/gallium/drivers/r600/r600_context.h src/gallium/drivers/r600/r600_draw.c src/gallium/drivers/r600/r600_shader.c src/gallium/drivers/r600/r600_state.c
2010-08-06draw: Avoid mixed declarations and code.Chia-I Wu
Do not expand LOCAL_VARS to void expression. Otherwise, declarations and code will be mixed when more variables are declared in FUNC_ENTER. This fixes fdo bug #29416.
2010-08-06swrast: Reduce header file inclusion in s_aatriangle.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-06swrast: Reduce header file inclusion in s_aaline.h.Vinson Lee
Include mtypes.h for GLcontext symbol.
2010-08-06ir_to_mesa: Add support for sampler arrays.Eric Anholt
Support for samplers in general is still incomplete -- anything in a uniform struct will still be broken. But that doesn't appear to be any different from master. Fixes: glsl-fs-uniform-sampler-array.shader_test
2010-08-06glsl2: Fix inlining with sampler array or struct dereferences as arguments.Eric Anholt
Previously, we'd replace an argument of mysampler[2] with a plain reference to mysampler by using the cloning hash table. Instead, use a visitor to clone whatever complicated sampler dereference into the sampler parameter derefs in the inlined function body.
2010-08-06glsl2: Don't assert in a couple of places when encountering sampler arrays.Eric Anholt
Fixes glean shaderAPI.
2010-08-06ir_to_mesa: Give the expected size for _mesa_add_attribute().Eric Anholt
Fixes a failure in glean shaderAPI.
2010-08-05r300g: Remove unnecessary headers.Vinson Lee
2010-08-06r600g: start to fix up multiple targets.Dave Airlie
fixup exports from pixel shader for multi-cbs + depth buffer writing. Still crashes GPU running any of the multi-buffer or depth writing
2010-08-06draw: Remove unnecessary vertex flag ANDs.Chia-I Wu
Vertex flags are a contract between vcache and the pipeline. They are set only for the first vertex of a primitive.
2010-08-06draw: Mask out vertex flags in GS and stream output.Chia-I Wu
This fixes out-of-bound access to the vertices.
2010-08-06draw: Include draw_decompose_tmp.h in draw_pt_decompose.h.Chia-I Wu
Use draw_decompose_tmp.h to replace pipeline primitive decomposer.
2010-08-06draw: Include draw_decompose_tmp.h in draw_so_emit_tmp.h.Chia-I Wu
Use draw_decompose_tmp.h to replace stream out primitive decomposer.
2010-08-06draw: Include draw_decompose_tmp.h in draw_gs_tmp.h.Chia-I Wu
Use draw_decompose_tmp.h to replace GS primitive decomposer.