summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_wm.h
diff options
context:
space:
mode:
authorGary Wong <gtw@gnu.org>2008-10-31 17:31:57 -0400
committerGary Wong <gtw@gnu.org>2008-10-31 17:37:26 -0400
commitab3e9c481f7517ffc63770dbb9c81fe559884a35 (patch)
treee76543d73989f371f7c1d45c2813f61732ab3833 /src/mesa/drivers/dri/i965/brw_wm.h
parent58dc8b7db5829188dbb45c020ab44732d6053888 (diff)
downloadexternal_mesa3d-ab3e9c481f7517ffc63770dbb9c81fe559884a35.zip
external_mesa3d-ab3e9c481f7517ffc63770dbb9c81fe559884a35.tar.gz
external_mesa3d-ab3e9c481f7517ffc63770dbb9c81fe559884a35.tar.bz2
i965: implement the missing OPCODE_NOISE1 and OPCODE_NOISE2 instructions.
(Only in fragment shaders, so far. Support for NOISE3 and NOISE4 to come.)
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h
index b39b271..896390c 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.h
+++ b/src/mesa/drivers/dri/i965/brw_wm.h
@@ -157,6 +157,7 @@ struct brw_wm_instruction {
#define BRW_WM_MAX_PARAM 256
#define BRW_WM_MAX_CONST 256
#define BRW_WM_MAX_KILLS MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS
+#define BRW_WM_MAX_SUBROUTINE 16
@@ -249,6 +250,7 @@ struct brw_wm_compile {
GLuint tmp_regs[BRW_WM_MAX_GRF];
GLuint tmp_index;
GLuint tmp_max;
+ GLuint subroutines[BRW_WM_MAX_SUBROUTINE];
};