Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: track initialization status of uniform variables. Plus, asst clean-ups. | Brian Paul | 2008-11-10 | 7 | -31/+52 |
| | |||||
* | mesa: initial support for uniform variable initializers. | Brian Paul | 2008-11-10 | 1 | -5/+22 |
| | | | | | This lets one specify initial values for uniforms in the code, avoiding the need to call glUniform() in some cases. | ||||
* | mesa: fix logic error in GLSL linker when looking for main() shaders | Brian Paul | 2008-11-10 | 1 | -5/+10 |
| | |||||
* | mesa: allows 'f' suffix on GLSL float literals | Brian Paul | 2008-11-10 | 2 | -6/+16 |
| | |||||
* | mesa: remove OPCODE_INT #define | Brian | 2008-11-08 | 1 | -3/+0 |
| | |||||
* | mesa: add support for 'centroid' qualifier in GLSL 1.20 | Brian Paul | 2008-11-07 | 11 | -2598/+2706 |
| | |||||
* | mesa: add support for 'invariant' keyword for GLSL 1.20 | Brian Paul | 2008-11-07 | 11 | -2609/+2749 |
| | |||||
* | mesa: reformat comments, rewrap lines, etc for a little better readability | Brian Paul | 2008-11-07 | 2 | -402/+418 |
| | |||||
* | mesa: forgot sqrt in NRM3/4 instructions | Brian Paul | 2008-11-07 | 1 | -2/+2 |
| | |||||
* | mesa: fix opcode table order bug | Brian Paul | 2008-11-07 | 1 | -2/+2 |
| | |||||
* | mesa: add GLSL support for DP2, NRM3, NRM4 instructions (not actually ↵ | Brian Paul | 2008-11-07 | 4 | -3/+18 |
| | | | | emitted yet though) | ||||
* | mesa: added DP2, DP2A instructions | Brian Paul | 2008-11-07 | 3 | -2/+32 |
| | |||||
* | mesa: added AND/OR/NOT/XOR instructions | Brian Paul | 2008-11-07 | 3 | -23/+199 |
| | |||||
* | mesa: include shader/prog_instruction.h | Brian Paul | 2008-11-07 | 1 | -0/+1 |
| | | | | Seems to fix a mysteriously missing build dependency. | ||||
* | mesa: added OPCODE_NRM3/NRM4 instructions for vector normalization. | Brian Paul | 2008-11-07 | 3 | -0/+45 |
| | | | | | | We may emit these instructions from GLSL instead of DP3/RCP/MUL. Also, implement SSG (set sign) instruction in the interpreter. | ||||
* | mesa: rename OPCODE_INT -> OPCODE_TRUNC | Brian Paul | 2008-11-06 | 4 | -14/+17 |
| | | | | Trunc is a more accurate description; there's no type conversion involved. | ||||
* | mesa: update the shader programs->TexturesUsed array at link time | Brian Paul | 2008-11-06 | 3 | -4/+26 |
| | | | | | | | | If an application never calls glUniform() to set sampler variable values they'll remain 0 (the default value/unit). Now call _mesa_update_shader_textures_used() at link time in case glUniform() is never called. program->TextureUsed[] will then be correct for state validation. | ||||
* | mesa: Fix compiler warnings on Windows. | Brian Paul | 2008-11-05 | 1 | -1/+1 |
| | | | | cherry-picked subset of a77976d2ee578d0483c64f2aa41719bbae9c1c97 | ||||
* | mesa: fix a GLSL array indexing codegen bug | Brian Paul | 2008-11-05 | 2 | -8/+101 |
| | | | | Expressions like array[i] + array[j] didn't work properly before. | ||||
* | mesa: remove extra \n from printf string | Brian Paul | 2008-11-05 | 1 | -1/+1 |
| | |||||
* | mesa: add Initialized field to gl_uniform struct, for debugging purposes only | Brian Paul | 2008-11-05 | 3 | -7/+16 |
| | |||||
* | mesa: fix float-valued GLSL vertex attribute variables | Brian Paul | 2008-11-04 | 1 | -8/+8 |
| | | | | The swizzle mask for such variables wasn't set up properly. | ||||
* | mesa: silence warnings | Brian Paul | 2008-11-01 | 1 | -3/+3 |
| | |||||
* | mesa: do scope replacement for while/for loops too | Brian Paul | 2008-11-01 | 1 | -3/+7 |
| | | | | This fixes a function inlining bug involving vars declared inside loop bodies. | ||||
* | mesa: glsl tree print improvements | Brian Paul | 2008-11-01 | 1 | -1/+17 |
| | |||||
* | mesa: fix assignment / parameter passing of sampler types | Brian Paul | 2008-11-01 | 3 | -8/+29 |
| | |||||
* | mesa: additional debug flags for glsl debug/disassembly | Brian Paul | 2008-11-01 | 2 | -23/+25 |
| | |||||
* | mesa: fix some bugs with precision qualifier parsing | Brian Paul | 2008-10-31 | 9 | -2382/+2459 |
| | |||||
* | mesa: do scope replacement for variable initializers too | Brian Paul | 2008-10-31 | 1 | -0/+11 |
| | |||||
* | mesa: fix copy/paste error in GLSL error msg | Brian Paul | 2008-10-31 | 1 | -1/+1 |
| | |||||
* | mesa: set FRAG_BIT_FOGC bit in InputsUsed if FogOption!=GL_NONE | Brian Paul | 2008-10-06 | 1 | -0/+3 |
| | |||||
* | GLSL: Implement _mesa_get_handle | Ian Romanick | 2008-09-29 | 1 | -17/+8 |
| | | | | | Implementing _mesa_get_handle in using glGetIntegerv(GL_CURRENT_PROGRAM, ...) allows glGetHandleARB to work. | ||||
* | GLSL: AttachShader returns INVALID_OPERATION for repeated attach | Ian Romanick | 2008-09-29 | 1 | -1/+7 |
| | | | | | | | The GL_ARB_shader_objects spec says that glAttachShaderARB is supposed to return GL_INVALID_OPERATION if a shader is attached to a program where it is already attached. _mesa_attach_shader perviously returned without error in this case. | ||||
* | mesa: asst updates for VMS | Jouk Jansen | 2008-09-29 | 2 | -4/+7 |
| | |||||
* | mesa: fix assertion in _mesa_reference_program() | Brian Paul | 2008-09-26 | 1 | -1/+5 |
| | |||||
* | mesa: fix function params to match prototypes | Sam Hocevar | 2008-09-25 | 1 | -5/+5 |
| | |||||
* | mesa: prevent the slang code generator from aborting when faced with a ↵ | Sam Hocevar | 2008-09-25 | 1 | -1/+5 |
| | | | | sampler variable redeclaration. | ||||
* | mesa: glsl: fix glGetUniform for matrix queries | Brian Paul | 2008-09-23 | 1 | -50/+79 |
| | | | | (cherry picked from commit 7a6eba54d064cadf15f93df2c1748cf5e474ef03) | ||||
* | mesa: glsl: fix a number of glUniform issues | Brian Paul | 2008-09-23 | 1 | -31/+199 |
| | | | | | | | | | Additional error checking. Allow setting elements of uniform arrays. This involves encoding both a uniform location and a parameter offset in the value returned by glGetUniformLocation(). Limit glUniform[if]v()'s count to the size of the uniform array. When setting bool-valued uniforms, convert all float/int values to 0 or 1. | ||||
* | mesa: glsl: fix error check in get_uniformfv() | Brian Paul | 2008-09-23 | 1 | -4/+9 |
| | | | | (cherry picked from commit 18cd9c229a1fc8da8b7669b8d1d100f6bbeca183) | ||||
* | mesa: Apply MSVC portability fixes from Alan Hourihane. | José Fonseca | 2008-09-23 | 3 | -6/+6 |
| | |||||
* | mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs() | Brian Paul | 2008-09-23 | 1 | -0/+9 |
| | |||||
* | mesa: new gl_fragment_program fields indicating use of fog, front-facing, ↵ | Brian Paul | 2008-09-23 | 1 | -18/+32 |
| | | | | | | point coord (cherry picked from commit d7a7b0a10dd355fbeb7a404091a42d4ab558c820) | ||||
* | mesa: set point state | Brian Paul | 2008-09-21 | 1 | -0/+4 |
| | | | | (cherry picked from commit af3d9dba562813ffed71691bffd7faf6665c4487) | ||||
* | mesa: fix issues causing warnings on Windows | Brian Paul | 2008-09-21 | 1 | -1/+9 |
| | |||||
* | mesa: Use appropriate unsigned/signed, float/integer types. | José Fonseca | 2008-09-21 | 1 | -1/+1 |
| | |||||
* | mesa: remove unneeded #include | Brian Paul | 2008-09-21 | 1 | -1/+0 |
| | | | | (cherry picked from commit 6363960db55769db73021081b60f1028723d9f58) | ||||
* | mesa: move fixed function vertex program builder from tnl to core mesa | Keith Whitwell | 2008-09-21 | 5 | -11/+296 |
| | | | | | | Also unify caching of fragment and vertex programs in shader/prog_cache.c` Brought across from gallium-0.2 | ||||
* | mesa: prefix a bunch of #include lines with "main/". | Brian Paul | 2008-09-18 | 18 | -67/+67 |
| | | | | | This is another step toward removing a whole bunch of -I flags from the cc commands. Still need to address driver code... | ||||
* | mesa: fix bug in previous changes to _slang_resolve_attributes() | Brian Paul | 2008-09-17 | 1 | -1/+3 |
| |