summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-09-20 14:30:22 +0000
committerKeith Whitwell <[email protected]>2006-09-20 14:30:22 +0000
commit187f2cfb4ace79fabc994f4ce2753db5b11528eb (patch)
tree069cb2e2f9bc6e0ef5111949513f596e5b335dc1 /src/mesa/shader/program.h
parent0c9259f3b95615ceda134bd7074d871cd0186c89 (diff)
Add a new internal program parameter value STATE_TEXRECT_SCALE which
provides 1/width and 1/height of the active texture, useful for implementing ARB_texture_rectangle support on hardware which only supports ARB_npot-style texturing.
Diffstat (limited to 'src/mesa/shader/program.h')
-rw-r--r--src/mesa/shader/program.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h
index 5b73965dcaf..cf3b1cc0990 100644
--- a/src/mesa/shader/program.h
+++ b/src/mesa/shader/program.h
@@ -188,6 +188,7 @@ enum state_index {
STATE_INTERNAL, /* Mesa additions */
STATE_NORMAL_SCALE,
+ STATE_TEXRECT_SCALE,
STATE_POSITION_NORMALIZED /* normalized light position */
};