summaryrefslogtreecommitdiff
path: root/src/mesa/shader
AgeCommit message (Collapse)Author
2009-01-06mesa: revamp GLSL instruction emit codeBrian Paul
This is a step toward better array handling code. In particular, when more than one operand of an instruction uses indirect addressing, we'll need some temporary instructions and registers. By converting IR storage to instruction operands all in one place (emit_instruction()) we can be smarter about this. Also, somewhat better handling of dst register swizzle/writemask handling. This results in tighter writemasks on some instructions which is good for SOA execution. And, cleaner instruction commenting with inst_comment(). Next: remove some more dead code and additional clean-ups... (cherry picked from commit 3a7ed9779b159f9dccbc98d1d556be2cd83cc1fd)
2009-01-06mesa: make writemask_string() non-staticBrian Paul
(cherry picked from commit 610c2461ce0683ca5412e4b2b7a496f67e9d3704) Conflicts: src/mesa/shader/prog_print.c
2009-01-06mesa: remove some do-nothing GLSL codeBrian Paul
(cherry picked from commit 4c167f8fc1e56b6c82d8917c237e70531e3d57b9)
2009-01-06mesa: fix accidental regression in GLSL built-in texture matrix lookupBrian Paul
Was broken by commit 9aca9a4b72b2a7b378e50bd88f9c3324d07375ec. (cherry picked from commit fe984aed5a9ee7c6e000d48a0a584b964fefa848) Conflicts: src/mesa/shader/slang/slang_builtin.c
2009-01-06mesa: remove unused/obsolete __NormalMatrixTranspose matrixBrian Paul
(cherry picked from commit e556cc82f83716a734ed9d76356ba49bb670004f)
2009-01-06mesa: tweak program register printing for RelAddr caseBrian Paul
(cherry picked from commit 557fde9531289b4388a3080b89c2ebaa38abeaee)
2009-01-06mesa: allow relative indexing into all register files and indirect dst ↵Brian Paul
register indexing (cherry picked from commit f4361540f8dd3016571523863b33481cba7a0c07) Conflicts: src/mesa/shader/prog_execute.c
2009-01-06mesa: track initialization status of uniform variables. Plus, asst clean-ups.Brian Paul
(cherry picked from commit 2d76a0d77af7be9539f89cba37ce84338c1cdda4)
2009-01-06mesa: initial support for uniform variable initializers.Brian Paul
This lets one specify initial values for uniforms in the code, avoiding the need to call glUniform() in some cases. (cherry picked from commit 379ff8c9567940ebff44870cf7b0202882445fa6)
2009-01-06mesa: allows 'f' suffix on GLSL float literalsBrian Paul
(cherry picked from commit 80c8017a643dfb655e4e1500e1c57e3908529c27)
2009-01-06mesa: add support for 'centroid' qualifier in GLSL 1.20Brian Paul
(cherry picked from commit 87d1a26ba38e75f6988e094dbfbc0f77c0ae502b) Conflicts: src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
2009-01-06mesa: add support for 'invariant' keyword for GLSL 1.20Brian Paul
(cherry picked from commit 448156f769ebf271a6a8c03c61588c3e6c6363f0) Conflicts: src/mesa/shader/slang/library/slang_vertex_builtin_gc.h
2009-01-06mesa: reformat comments, rewrap lines, etc for a little better readabilityBrian Paul
(cherry picked from commit b632e5aa7f948ed5bbf7104682ec3ee463af4c0a)
2008-12-18glsl: Fix handling of nested parens in macro actual arguments.Michal Krol
2008-11-10mesa: fix logic error in GLSL linker when looking for main() shadersBrian Paul
2008-11-06mesa: update the shader programs->TexturesUsed array at link timeBrian Paul
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.
2008-11-05mesa: fix a GLSL array indexing codegen bugBrian Paul
Expressions like array[i] + array[j] didn't work properly before.
2008-11-05mesa: remove extra \n from printf stringBrian Paul
2008-11-05mesa: add Initialized field to gl_uniform struct, for debugging purposes onlyBrian Paul
2008-11-04mesa: fix float-valued GLSL vertex attribute variablesBrian Paul
The swizzle mask for such variables wasn't set up properly.
2008-11-01mesa: silence warningsBrian Paul
2008-11-01mesa: do scope replacement for while/for loops tooBrian Paul
This fixes a function inlining bug involving vars declared inside loop bodies.
2008-11-01mesa: glsl tree print improvementsBrian Paul
2008-11-01mesa: fix assignment / parameter passing of sampler typesBrian Paul
2008-11-01mesa: additional debug flags for glsl debug/disassemblyBrian Paul
2008-10-31mesa: fix some bugs with precision qualifier parsingBrian Paul
2008-10-31mesa: do scope replacement for variable initializers tooBrian Paul
2008-10-31mesa: fix copy/paste error in GLSL error msgBrian Paul
2008-10-08mesa: in _mesa_combine_programs() take new STATE_CURRENT_ATTRIB color into ↵Brian Paul
account Commit 1680ef869625dc1fe9cf481b180382a34e0738e7 changed the texenv program to get color from a state register instead of a constant-valued vertex attribute. This broke program concatenation (so glDraw/CopyPixels broke). Now check if the second program get's color from a constant register and handle that case appropriately.
2008-10-07mesa: remove old assertionBrian Paul
2008-10-03Mesa: short-circuit case when looking up the same program twice in cacheKeith Whitwell
2008-10-03mesa: add new internal state for tracking current vertex attribsKeith Whitwell
2008-10-03mesa: add missing state dependencies for various tracked constantsKeith Whitwell
2008-10-01mesa: Fix compiler warnings on Windows.Michal Krol
2008-09-26mesa: add some bracesBrian Paul
2008-09-19mesa: Fix compiler error.Michal Krol
2008-09-19mesa: Fix arb parse constantsBrian Paul
2008-09-17mesa: new gl_fragment_program fields indicating use of fog, front-facing, ↵Brian Paul
point coord
2008-09-17mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()Brian Paul
2008-09-17mesa: fix bug in previous changes to _slang_resolve_attributes()Brian Paul
2008-09-16mesa: rework GLSL vertex attribute bindingBrian Paul
Calls to glBindAttribLocation() should not take effect until the next time that glLinkProgram() is called. gl_shader_program::Attributes now just contains user-defined bindings. gl_shader_program::VertexProgram->Attributes contains the actual/final bindings.
2008-09-16mesa: fix bug in get_uniform_rows_cols(): sometimes returned too many rowsBrian Paul
2008-09-05mesa: _mesa_program_state_string() returns char *, not const char *.Michal Krol
2008-09-04mesa: fix minor mem leakBrian Paul
2008-08-22mesa: glsl: regenerated fileBrian Paul
2008-08-22mesa: glsl: implement exp() functions in terms of EXP asm instruction, not powBrian Paul
2008-08-20mesa: glsl: fix a swizzle bug in storage_to_src_reg()Brian Paul
Need to remove the 'nil' components before swizzling a swizzle
2008-08-20mesa: glsl: add check for exceeding max number of constants/uniformsBrian Paul
2008-08-20mesa: glsl: regenerated fileBrian Paul
2008-08-20mesa: glsl: better implementation of ftransform()Brian Paul