i965: STATIC_ASSERT that there aren't too many BRW_NEW_* flags.
authorPaul Berry <stereotype441@gmail.com>
Sun, 18 Aug 2013 16:19:35 +0000 (09:19 -0700)
committerPaul Berry <stereotype441@gmail.com>
Mon, 19 Aug 2013 15:28:17 +0000 (08:28 -0700)
commitc6b6c936434b98b0262fd0856b00f13f43edc6ba
treeec7c2881f257a4ee6d4b5ae7babe5690b754e53c
parent5ddd840f5aacb7cc6e62b712aa737c683bd91f55
i965: STATIC_ASSERT that there aren't too many BRW_NEW_* flags.

We are getting close to the maximum number of BRW_NEW_* bits that can
be stored in brw->state.dirty.brw without overflowing 32 bits, and
geometry shaders are going to add more.  Add a STATIC_ASSERT so that
we will be alerted when we need to switch to 64 bits.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h