Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-06-26 | glsl: implement continue->break transformation for for-loops | Brian Paul | |
2009-06-26 | glsl: added slang_operation_add_children() and slang_oper_child() helpers | Brian Paul | |
2009-06-26 | glsl: added slang_assemble_ctx::EmitContReturn field, init | Brian Paul | |
2009-06-26 | glsl: don't unroll loops containing continue/break | Brian Paul | |
Just search the AST in _slang_can_unroll_for_loop(). | |||
2009-06-26 | Revert "slang: if/else/break & if/else/continue work for unrolled loops" | Brian Paul | |
We should just check if the loop contains a continue/break in the _slang_can_unroll_for_loop() test function... This reverts commit 989856bde47d699d7e18798df4013fbf962e1d4b. Conflicts: src/mesa/shader/slang/slang_codegen.h | |||
2009-06-22 | mesa: rename MAX_VERTEX_ATTRIBS to MAX_VERTEX_GENERIC_ATTRIBS | Brian Paul | |
Be clearer that this is the number of generic vertex program/shader attributes, not counting the legacy attributes (pos, normal, color, etc). (cherry picked from commit 4a95185c9f30c2de7a03bb1a0653f51b53b1111d) | |||
2009-06-26 | Merge branch 'mesa_7_5_branch' | Brian Paul | |
Conflicts: Makefile src/gallium/drivers/softpipe/sp_screen.c src/mesa/main/version.h | |||
2009-06-17 | glsl: call _mesa_postprocess_program(), disabled | Brian Paul | |
2009-06-10 | glsl: fix warnings, update comments, s/TRUE/GL_TRUE/ | Brian Paul | |
(cherry picked from master, commit 7fdd64ab29576e607434fb8c82ddfa61e8ea6aa8) | |||
2009-06-10 | glsl: Handle continuation characters in preprocessor. | Brian Paul | |
(cherry picked from master, commit cc22620e4b11425997f3bc1fc70f4c88cec22d2e) | |||
2009-06-10 | glsl: fix warnings, update comments, s/TRUE/GL_TRUE/ | Brian Paul | |
2009-06-10 | glsl: Handle continuation characters in preprocessor. | Michal Krol | |
2009-06-10 | glsl: Fix symbol replacement handling in preprocessor. | Brian Paul | |
(cherry picked from master, commit d9617deb008b75f4a605a30408aeb1948139c33e) | |||
2009-06-09 | glsl: Expand nested preprocessor macros. | Brian Paul | |
(cherry picked from master, commit ef8caec29ae73bb2bbeb48f0578d839ef29348cd) | |||
2009-06-10 | glsl: Fix symbol replacement handling in preprocessor. | Michal Krol | |
2009-06-09 | glsl: Expand nested preprocessor macros. | Michal Krol | |
2009-06-08 | glsl: Fix preprocessor define argument parsing for dead sections. | Brian Paul | |
(cherry picked from master, commit 19a54d9f1055c366fd77026dd67007a8d5921f58) | |||
2009-06-08 | glsl: Fix preprocessor define argument parsing for dead sections. | Michal Krol | |
2009-06-08 | glsl: preprocessor debug code (disabled) | Brian Paul | |
2009-05-22 | mesa: rename MAX_VERTEX_ATTRIBS to MAX_VERTEX_GENERIC_ATTRIBS | Brian Paul | |
Be clearer that this is the number of generic vertex program/shader attributes, not counting the legacy attributes (pos, normal, color, etc). | |||
2009-05-08 | glsl: check number of varying variables against the limit | Brian Paul | |
Link fails if too many varying vars. | |||
2009-05-08 | glsl: set vertex/fragment program Ids to aid with debugging | Brian Paul | |
2009-04-27 | Avoid a segfault in shader compilation | Robert Ellison | |
If a shader reaches an out-of-memory condition while adding a new function (reallocating the function list), a segfault will occur during cleanup (because the num_functions field is non-zero, but the functions pointer is NULL). This fixes that segfault by zeroing out the num_functions field if reallocation fails. | |||
2009-04-14 | mesa: merge the prog_src_register::NegateBase and NegateAbs fields | Brian Paul | |
There's really no need for two negation fields. This came from the GL_NV_fragment_program extension. The new, unified Negate bitfield applies after the absolute value step. | |||
2009-04-07 | glsl: don't optimize program if MESA_GLSL=nopt | Brian Paul | |
2009-04-02 | glsl: fix segfault in linker when vertex or fragment shader was missing | Brian Paul | |
2009-04-01 | glsl: implement compiling/linking of separate compilation units | Brian Paul | |
A shader program may consist of multiple shaders (source code units). If we find there are unresolved functions after compiling the unit that defines main(), we'll concatenate all the respective vertex or fragment shaders then recompile. This isn't foolproof but should work in most cases. | |||
2009-04-01 | glsl: fix texgen state variable tokens in emit_statevars() | Brian Paul | |
This fixes broken variable indexing into the gl_Eye/ObjectPlaneS/T/R/Q arrays. See bug 20986. | |||
2009-03-25 | slang: ensure structure elements have their array length set | Alan Hourihane | |
2009-03-20 | slang: Use _mesa_snprintf() wrapper. | Michal Krol | |
2009-03-19 | slang: initialize the context | Alan Hourihane | |
2009-03-19 | slang: support uniform arrays | Alan Hourihane | |
2009-03-19 | glsl: change GLSL #pragma initialization | Brian Paul | |
Initialize the shader's pragma settings before calling the compiler. Added pragma "Ignore" fields to allow overriding the #pragma directives found in shader source code. | |||
2009-03-19 | glsl: when debug pragma is on, emit comments about function calls/inlines | Brian Paul | |
BTW, the debug pragma syntax is "#pragma debug(on)" | |||
2009-03-19 | slang: if/else/break & if/else/continue work for unrolled loops | Alan Hourihane | |
2009-03-18 | slang: redo the last commit for if/break & if/continue tests as it | Alan Hourihane | |
wasn't good enough for deeply nested if's. | |||
2009-03-18 | Revert "slang: if we detect an if/break or if/continue within a loop and we're" | Alan Hourihane | |
This reverts commit 752296b8f311c5e3844f3ce89d17ba57224ce5ba. | |||
2009-03-18 | slang: if we detect an if/break or if/continue within a loop and we're | Alan Hourihane | |
trying to unroll, bail, and fallback to doing the real loop. | |||
2009-03-10 | glsl: remove _slang_attach_storage() function | Brian Paul | |
This was used to handle both variable declarations and references to variables. Instead, just do storage allocation and assignment for declarations and references, respectively. This is a step toward better var/uniform allocation (only allocate storage for vars/uniforms that are actually referenced by the code). | |||
2009-03-10 | glsl: some clean-ups, remove old assertions, add new assertions | Brian Paul | |
2009-03-10 | glsl: remove stray/unneeded totalSize assignment | Brian Paul | |
2009-03-10 | glsl: fix typo: s/vec4_tex1d_proj/vec4_tex_1d_proj/ | Brian Paul | |
This regression came from commit c0b59420eec5ffdf22a5919d38851c3620b97c09. | |||
2009-03-07 | mesa: gl_register_file enum typedef | Brian Paul | |
2009-03-06 | glsl: call the program optimizer | Brian Paul | |
This still needs more testing bug glean and Mesa GLSL tests seem OK. | |||
2009-02-28 | mesa: rename, reorder FRAG_RESULT_x tokens | Brian Paul | |
s/FRAG_RESULT_DEPR/FRAG_RESULT_DEPTH/ s/FRAG_RESULT_COLR/FRAG_RESULT/COLOR/ Remove FRAG_RESULT_COLH (NV half-precision) output since we never used it. Next, we might merge the COLOR and DATA outputs (COLOR0, COLOR1, etc). | |||
2009-02-24 | glsl: silence warning | Brian Paul | |
2009-02-23 | glsl: yet another swizzled expression fix | Brian Paul | |
This fixes swizzled conditional expressions such "(b ? p : q).x" | |||
2009-02-23 | glsl: fix another swizzle-related bug | Brian Paul | |
This fixes the case of "infinitely" nested swizzles such as EXPR.wzyx.yxwz.xxyz This doesn't appear in typical shaders but with function inlining and the compiler's internal use of swizzles it can happen. New glean glsl1 test case added for this. | |||
2009-02-20 | glsl: use new IR opcodes for TEX instructions with shadow comparison | Brian Paul | |
Such TEX instructions will have the TexShadow flag set. The gl_program::ShadowSamplers field is now set in the linker. We missed that before. | |||
2009-02-20 | glsl: rename GLSL texture assembly instructions to be more legible | Brian Paul | |