i965: Pack the lookup and line_aa bits into the first dword of the key.
authorEric Anholt <eric@anholt.net>
Thu, 19 May 2011 16:56:27 +0000 (09:56 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 May 2011 17:07:38 +0000 (10:07 -0700)
They were occupying whole 32-bit words, despite being only 10 or so
bits.  Reduces code size slightly (80/3300 bytes).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm.h

index ccadb72db1c3ddb45fbecf88bc65c0333d8c060f..3010e31581140783110476de06fb385e3c72ec96 100644 (file)
 #define AA_ALWAYS    2
 
 struct brw_wm_prog_key {
+   uint8_t iz_lookup;
    GLuint stats_wm:1;
    GLuint flat_shade:1;
    GLuint nr_color_regions:5;
    GLuint render_to_fbo:1;
    GLuint alpha_test:1;
    GLuint clamp_fragment_color:1;
+   GLuint line_aa:2;
 
    GLbitfield proj_attrib_mask; /**< one bit per fragment program attribute */
    GLuint yuvtex_mask:16;
@@ -74,8 +76,6 @@ struct brw_wm_prog_key {
    GLushort tex_swizzles[BRW_MAX_TEX_UNIT];
    GLushort drawable_height;
    GLbitfield64 vp_outputs_written;
-   GLuint iz_lookup;
-   GLuint line_aa;
    GLuint program_string_id:32;
 };