summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_wm.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-01-28 14:50:03 -0700
committerBrian Paul <brianp@vmware.com>2009-01-28 14:50:03 -0700
commitc0d3b7679aa90e1a0dca2db152205efaec088b90 (patch)
treed3f159773a1f83e78e9b60367abbce9311420b08 /src/mesa/drivers/dri/i965/brw_wm.h
parent9e7903e492ad842481a166484e0474dd4f3100ba (diff)
i965: implement GL_EXT_texture_swizzle
If the texture swizzle is not XYZW (no-op) add an extra MOV instruction after the TEX instruction to rearrange the components.
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 388c6f7618..0f46a25b1a 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.h
+++ b/src/mesa/drivers/dri/i965/brw_wm.h
@@ -70,6 +70,8 @@ struct brw_wm_prog_key {
GLuint yuvtex_mask:16;
GLuint yuvtex_swap_mask:16; /* UV swaped */
+ GLuint tex_swizzles[BRW_MAX_TEX_UNIT];
+
GLuint program_string_id:32;
GLuint origin_x, origin_y;
GLuint drawable_height;