i965/cs: Return 1 for regs_read on CS_OPCODE_CS_TERMINATE
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 16 Jul 2015 22:04:43 +0000 (15:04 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 17 Jul 2015 04:37:07 +0000 (21:37 -0700)
commit7e337859ff98a0caf00fd201a5389933d42d0baa
tree565eac8eb65422499d6499c3c74ab2ada3aad586
parent4b17f0d9f58637300b0748d1fb702a7e4d51979f
i965/cs: Return 1 for regs_read on CS_OPCODE_CS_TERMINATE

This prevents an assertion failure in brw_fs_live_variables.cpp,
fs_live_variables::setup_one_read: Assertion `var < num_vars' failed.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp