Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-04-03 | mesa: replace >= with > when testing if we've exceeded max local params | Brian Paul | |
Now a program that uses 256 locals works as it should. | |||
2009-04-03 | mesa: for OPCODE_LIT, use _mesa_pow() instead of exp() and log() | Brian Paul | |
Also, s/pow/_mesa_pow/ | |||
2009-04-03 | mesa: rename some gl_light fields to be clearer | Brian Paul | |
EyeDirection -> SpotDirection _NormDirection -> _NormSpotDirection | |||
2009-04-03 | mesa: replace assertion with conditional in _mesa_opcode_string() | Brian Paul | |
2009-04-03 | mesa: clean up formatting and use 'return' instead of 'break' consistantly | 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 | mesa: use correct tex unit lod bias for TXB instruction | Brian Paul | |
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-04-01 | mesa: minor tweaks in append_token() for printing state var strings | Brian Paul | |
2009-03-25 | slang: ensure structure elements have their array length set | Alan Hourihane | |
2009-03-20 | mesa: add new internal state var for window size | Brian Paul | |
Actually, window width - 1, height - 1 | |||
2009-03-20 | mesa: linear scan register allocation for shader programs | Brian Paul | |
This is a check-point commit; not turned on yet. Use the linear scan register allocation algorithm to re-allocate temporary registers. This is done by computing the live intervals for registers and reallocating temps with that information. For some shaders this dramatically reduces the number of temp registers needed. For the time being we give up on a few cases such as relative-indexed temps and subroutine calls (but we inline most GLSL functions anyway). | |||
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-17 | mesa: update/fix doxygen comments | Vinson Lee | |
2009-03-16 | mesa: Silence compiler warnings. | Michal Krol | |
2009-03-13 | mesa: glUseProgram() debug code (disabled) | Brian Paul | |
2009-03-12 | mesa: add support for ATI_envmap_bumpmap | Roland Scheidegger | |
add new entrypoints, new texture format, etc translate in texenvprogram.c for drivers using the mesa-generated tex env fragment program also handled in swrast, but not tested (cannot work due to negative texel results not handled correctly) | |||
2009-03-11 | mesa: remove some last remnants of GL_MESA_program_debug | Brian Paul | |
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 | mesa: fix dumb sizeof() vs. strlen() mix-up | 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-07 | mesa: remove GL_MESA_program_debug extension | Brian Paul | |
This was never fully fleshed out and hasn't been used. | |||
2009-03-06 | glsl: call the program optimizer | Brian Paul | |
This still needs more testing bug glean and Mesa GLSL tests seem OK. | |||
2009-03-06 | mesa: add new program optimizer code | Brian Paul | |
This is pretty simplistic for now, but helps with certain shaders. | |||
2009-03-05 | mesa: added some assertions | Brian Paul | |
2009-03-05 | mesa: when printing src regs, use |reg| for absolute value | Brian Paul | |
And check opcode number to avoid crashing on driver-private opcodes. | |||
2009-03-04 | mesa: include mfeatures.h | Brian Paul | |
See bug 20319. | |||
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-27 | mesa: update fragResults array in arb_output_attrib_string() | Brian Paul | |
Plus add some comments. | |||
2009-02-26 | mesa: replace old prog_instruction::Sampler field with Aux field | Brian Paul | |
The i965 driver needs an extra instruction field for color output information. It was using the Sampler field for this. Use the Aux field instead. This will probaby be revisited at some point... | |||
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-21 | mesa: re-org texgen state | Brian Paul | |
New gl_texgen struct allows quite a bit of code reduction. | |||
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 | mesa: add TexShadow field to prog_instruction | Brian Paul | |
If the instruction is TEX/TXP/TXL/etc the TexShadow field will be true if the instruction is a texture fetch with shadow compare. | |||
2009-02-20 | mesa: freshen-up comments, move some fields in prog_instruction | Brian Paul | |
2009-02-20 | glsl: rename GLSL texture assembly instructions to be more legible | Brian Paul | |