summaryrefslogtreecommitdiff
path: root/src/glsl/SConscript
AgeCommit message (Collapse)Author
2011-03-15scons: copy hash_table.c, symbol_table.c to glsl directoryJose Fonseca
This fixes an issue where the .obj files wound up in the src/ directory rather than the build/ directory. That prevented combined 32-bit and 64-bit builds from working. Signed-off-by: Brian Paul <brianp@vmware.com>
2011-03-04scons: Unbreak mingw cross compilation.José Fonseca
2011-03-04scons: Get glsl2 and glcpp programs building correctly.José Fonseca
2011-03-03scons: More tweaks to fix MinGW build.José Fonseca
2011-03-03scons: Ensure generated headers are in the include path.José Fonseca
2011-03-01scons: Use Flex and Bison to generate lexer/parser files.Kenneth Graunke
This gets it building again here; I'll leave it up to the SCons maintainers to make further improvements.
2011-02-11scons: builtin_glsl_function on windows needs bundled getopt.José Fonseca
2011-02-11scons: Try to support building 64bit binaries on 32bit windows.José Fonseca
2011-02-04glsl: Add opt_copy_propagation_elements.cpp to SConscript.Vinson Lee
Fixes SCons build.
2011-01-31scons/glsl: add top-level 'include' dir to CPPPATHBrian Paul
To avoid using the /usr/include/GL/gl.h file which may be lacking some special #defines.
2011-01-31Remove talloc from the SCons build system.Kenneth Graunke
2011-01-31ralloc: Add a fake implementation of ralloc based on talloc.Kenneth Graunke
2011-01-25glsl: Fix mingw crosscompileJakob Bornecrantz
2011-01-13scons: Fix cross-compilation.José Fonseca
Hairy stuff. Don't know how to do it better though.
2011-01-12glsl: Make builtin_compiler build on Windows with MSVC.José Fonseca
2011-01-12getopt: Import OpenBSD getopt implementation for MSVC.José Fonseca
2011-01-10glsl: Autogenerate builtin_functions.cpp as part of the build process.Kenneth Graunke
Python is already necessary for other parts of Mesa, so there's no reason we can't just generate it. This patch updates both make and SCons to do so.
2010-12-14glsl: new glsl_strtod() wrapper to fix decimal point interpretationBrian Paul
We always want to use '.' as the decimal point. See http://bugs.freedesktop.org/show_bug.cgi?id=24531 NOTE: this is a candidate for the 7.10 branch.
2010-12-01glsl: Add a lowering pass to move discards out of if-statements.Kenneth Graunke
This should allow lower_if_to_cond_assign to work in the presence of discards, fixing bug #31690 and likely #31983. NOTE: This is a candidate for the 7.9 branch.
2010-12-01glsl: Add an optimization pass to simplify discards.Kenneth Graunke
NOTE: This is a candidate for the 7.9 branch.
2010-11-19glsl: Add lower_vector.cpp to SConscript.Vinson Lee
2010-11-19glsl: Combine many instruction lowering passes into one.Kenneth Graunke
This should save on the overhead of tree-walking and provide a convenient place to add more instruction lowering in the future. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-11-15glsl: Add ir_constant_expression.cpp to SConscript.Vinson Lee
This was accidentally removed in commit 32aaf89823de11e98cb59d5ec78c66cd3e74bcd4. Fixes SCons builds.
2010-11-15glsl: remove opt_constant_expression.cpp from SConscriptBrian Paul
And alphabetize the opt_* files.
2010-11-15glsl: Rename various ir_* files to lower_* and opt_*.Kenneth Graunke
This helps distinguish between lowering passes, optimization passes, and other compiler code.
2010-09-17glsl: add pass to lower variable array indexing to conditional assignmentsLuca Barbieri
Currenly GLSL happily generates indirect addressing of any kind of arrays. Unfortunately DirectX 9 GPUs are not guaranteed to support any of them in general. This pass fixes that by lowering such constructs to a binary search on the values, followed at the end by vectorized generation of equality masks, and 4 conditional assignments for each mask generation. Note that this requires the ir_binop_equal change so that we can emit SEQ to generate the boolean masks. Unfortunately, ir_structure_splitting is too dumb to turn the resulting constant array references to individual variables, so this will need to be added too before this pass can actually be effective for temps. Several patches in the glsl2-lower-variable-indexing were squashed into this commit. These patches fix bugs in Luca's original implementation, and the individual patches can be seen in that branch. This was done to aid bisecting in the future. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-09-13glsl2: Add pass to remove redundant jumpsIan Romanick
2010-09-13glsl: add continue/break/return unification/elimination pass (v2)Luca Barbieri
Changes in v2: - Base class renamed to ir_control_flow_visitor - Tried to comply with coding style This is a new pass that supersedes ir_if_return and "lowers" jumps to if/else structures. Currently it causes no regressions on softpipe and nv40, but I'm not sure whether the piglit glsl tests are thorough enough, so consider this experimental. It can be asked to: 1. Pull jumps out of ifs where possible 2. Remove all "continue"s, replacing them with an "execute flag" 3. Replace all "break" with a single conditional one at the end of the loop 4. Replace all "return"s with a single return at the end of the function, for the main function and/or other functions This gives several great benefits: 1. All functions can be inlined after this pass 2. nv40 and other pre-DX10 chips without "continue" can be supported 3. nv30 and other pre-DX10 chips with no control flow at all are better supported Note that for full effect we should also teach the unroller to unroll loops with a fixed maximum number of iterations but with the canonical conditional "break" that this pass will insert if asked to. Continues are lowered by adding a per-loop "execute flag", initialized to TRUE, that when cleared inhibits all execution until the end of the loop. Breaks are lowered to continues, plus setting a "break flag" that is checked at the end of the loop, and trigger the unique "break". Returns are lowered to breaks/continues, plus adding a "return flag" that causes loops to break again out of their enclosing loops until all the loops are exited: then the "execute flag" logic will ignore everything until the end of the function. Note that "continue" and "return" can also be implemented by adding a dummy loop and using break. However, this is bad for hardware with limited nesting depth, and prevents further optimization, and thus is not currently performed.
2010-09-10glsl2: Fix scons build for all platformsJakob Bornecrantz
2010-09-05glsl: Add new files to sconscript.José Fonseca
2010-08-26scons: Add glsl_symbol_table.cppJosé Fonseca
2010-08-14scons: Add new source files.José Fonseca
2010-08-13scons: Build the new glsl2 code.José Fonseca
2009-12-28scons: Fix xlib build.José Fonseca
After glsl rework merge.
2009-12-23glsl/pp: move static functions out of header fileKeith Whitwell
2009-12-10scons: Get GLSL code building correctly when cross compiling.José Fonseca
This is quite messy. GLSL code has to be built twice: one for the host OS, another for the target OS.