summaryrefslogtreecommitdiff
path: root/src/mesa/shader/programopt.h
AgeCommit message (Collapse)Author
2008-06-12glsl: make sure we replace all output reads with temporariesZack Rusin
test in if.glsl
2008-04-07mesa: new _mesa_remove_varying_reads() functionBrian
We'll apply this function to GLSL vertex programs. In GLSL it's legal to read and write varying (output) vars in a vertex shader. But reading from an output register isn't supported by all hardware. This routine examines the vertex program for that condition and rewrites it to use temporary registers where needed.
2007-01-09added _mesa_count_texture_indirections(), _mesa_count_texture_instructions()Brian
2006-10-28Implement _mesa_append_fog_code() for fragment program fog options.Brian Paul
2006-08-25Rename _mesa_append_modelview_code() to _mesa_insert_mvp_code().Brian Paul
The four DP4 instructions are now inserted at the top of the program instead of appended to tail.
2006-08-24Functions for vertex/fragment program transformations, optimizations, etc.Brian Paul