summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/programopt.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-04-07 11:20:21 -0600
committerBrian <[email protected]>2008-04-07 11:23:44 -0600
commit48a25bdd3693ec4a2556efb3c387cc3eb8151cb5 (patch)
tree25d2dfd542258fe5ac4f6c1a6ad46605d3237570 /src/mesa/shader/programopt.h
parent5d1e73028aabfa1470bfed02c705a2696706f857 (diff)
mesa: new _mesa_remove_varying_reads() function
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.
Diffstat (limited to 'src/mesa/shader/programopt.h')
-rw-r--r--src/mesa/shader/programopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/programopt.h b/src/mesa/shader/programopt.h
index ce63644bbf5..47ff2f0c7be 100644
--- a/src/mesa/shader/programopt.h
+++ b/src/mesa/shader/programopt.h
@@ -39,5 +39,7 @@ _mesa_count_texture_indirections(struct gl_program *prog);
extern void
_mesa_count_texture_instructions(struct gl_program *prog);
+extern void
+_mesa_remove_varying_reads(struct gl_program *prog);
#endif /* PROGRAMOPT_H */