i965: Add an assert for when SET_FIELD's value exceeds the field size.
authorEric Anholt <eric@anholt.net>
Mon, 23 Dec 2013 09:39:42 +0000 (01:39 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 9 Jan 2014 07:23:27 +0000 (15:23 +0800)
commit5d2e86924ebe7b520a5964e9c90c5bb7213c67cf
treee4cbb3f77f5e2c52ac71faeb5255f808d3f0c545
parent98cdb2ceede34ad04cd8f65691bd96fbb44bcced
i965: Add an assert for when SET_FIELD's value exceeds the field size.

This was one of the things we always wanted to do to this, to make it more
useful than just (value << FIELD_MASK).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_defines.h