anv/cmd_buffer: Add some stage asserts
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Dec 2017 22:43:25 +0000 (14:43 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Dec 2017 23:43:25 +0000 (15:43 -0800)
commit0c879b62b0ee33a6eafcd5a38e4f50d3eabf5450
tree85b6b5d75b75b4019503a3b55426bd590220933f
parent1968cd07a220f38f1655ea946e25a882312bdb32
anv/cmd_buffer: Add some stage asserts

There are several places where we look up opcodes in an array of stages.
Assert that the we don't end up going out-of-bounds.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/genX_cmd_buffer.c