summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
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: 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: 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-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-01mesa: Fix compiler warnings on Windows.Michal Krol
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-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
2008-08-19mesa: glsl: more writemask error checkingBrian Paul
2008-08-19mesa: glsl: added some post incr/decr error checksBrian Paul
2008-08-19mesa: glsl: limit function matching through castingBrian Paul
2008-08-19mesa: glsl: add usage tracking for uniform varsBrian Paul
Unused uniforms are no longer included in the active uniforms list.
2008-08-19mesa: glsl: put var emit/ref code into separate functionsBrian Paul
2008-08-15mesa: glsl: fix linking of varying vars which are arraysBrian Paul
2008-08-12mesa: glsl: fix error detection of writing to read-only variablesBrian Paul
2008-08-12mesa: glsl: fix commentBrian Paul
2008-08-12mesa: glsl: enable bzero() in slang_typeinfo_construct()Brian Paul
2008-08-12mesa: glsl: remove reads of output regs from fragment shaders tooBrian Paul
2008-08-12mesa: glsl: better error messagesBrian Paul
2008-08-12mesa: glsl: regenerated filesBrian Paul
2008-08-12mesa: glsl: additional constructorsBrian Paul
2008-08-12mesa: glsl: better mod() functionsBrian Paul
2008-08-11mesa: glsl: regenerated fileBrian Paul