isl/state: Add some asserts about format capabilities
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Jul 2016 18:47:05 +0000 (11:47 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 29 Aug 2016 19:17:34 +0000 (12:17 -0700)
commitf4314d06e8b7ac2ecd0adf67a885f9af84dcf557
tree0a7eeab79a8f28b3727d4027ae5fa3e38e402ea7
parent87214414fd584aac80bb88f337ba119cac5109f3
isl/state: Add some asserts about format capabilities

This keeps invalid surface states from leaking through and potentially
hanging the GPU.  We shouldn't actually be hitting this on a regular basis,
but a helpful assert is better than a hang.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/isl/isl_surface_state.c