i965: make brw_wm_prog_key a little smaller
authorBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 21:57:22 +0000 (15:57 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 22:31:56 +0000 (16:31 -0600)
GLushort is big enough for the swizzle and origin fields.
The key could probably be made smaller still by re-ordering things.
I'll hold off on that until after the outputswritten64 branch is merged.
The key will get a little larger again with the GLbitfield64 fields.

src/mesa/drivers/dri/i965/brw_wm.h

index d0f30607d0e82bb9d06718cb7d19a3aef2285b5e..dd4644fc36fd801cf1eeb2c811336f931de5239c 100644 (file)
@@ -74,11 +74,11 @@ struct brw_wm_prog_key {
    GLuint yuvtex_mask:16;
    GLuint yuvtex_swap_mask:16; /* UV swaped */
 
-   GLuint tex_swizzles[BRW_MAX_TEX_UNIT];
+   GLushort tex_swizzles[BRW_MAX_TEX_UNIT];
 
    GLuint program_string_id:32;
-   GLuint origin_x, origin_y;
-   GLuint drawable_height;
+   GLushort origin_x, origin_y;
+   GLushort drawable_height;
    GLuint vp_outputs_written;
 };