i965: Add defines for surface state setup using bitfield shifting.
authorEric Anholt <eric@anholt.net>
Tue, 31 May 2011 19:03:52 +0000 (12:03 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 31 May 2011 19:07:28 +0000 (12:07 -0700)
commit7d437b1f7fb64f187125a393eebe1d1c17db9961
tree2757742e6dfa75cb10aa8b91b9389810ba358f78
parent3412069e23b7fa5656262f3dd1aa86f66980594d
i965: Add defines for surface state setup using bitfield shifting.

It turns out that gcc is just awful at generating code for
brw_structs.h style state setup, and using bitshifting on u32s
generates better code while being similarly readable (and more
verifiable compared to the specs, using the INTEL_MASK macro).
src/mesa/drivers/dri/i965/brw_defines.h