Mesa (master): i965: Pack the lookup and line_aa bits into the first dword of the key.
Eric Anholt
anholt at kemper.freedesktop.org
Thu May 26 17:08:23 UTC 2011
Module: Mesa
Branch: master
Commit: f7b3f40b70dc7dd602897d364011089047583c5d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7b3f40b70dc7dd602897d364011089047583c5d
Author: Eric Anholt <eric at anholt.net>
Date: Thu May 19 09:56:27 2011 -0700
i965: Pack the lookup and line_aa bits into the first dword of the key.
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 at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_wm.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm.h b/src/mesa/drivers/dri/i965/brw_wm.h
index ccadb72..3010e31 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.h
+++ b/src/mesa/drivers/dri/i965/brw_wm.h
@@ -59,12 +59,14 @@
#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;
};
More information about the mesa-commit
mailing list