From: Jordan Justen Date: Thu, 16 Jul 2015 22:04:43 +0000 (-0700) Subject: i965/cs: Return 1 for regs_read on CS_OPCODE_CS_TERMINATE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e337859ff98a0caf00fd201a5389933d42d0baa;p=mesa.git 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 Reviewed-by: Jason Ekstrand --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index ff0675d146f..2e3eb05b796 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -698,6 +698,9 @@ fs_inst::regs_read(int arg) const return 1; break; + case CS_OPCODE_CS_TERMINATE: + return 1; + default: if (is_tex() && arg == 0 && src[0].file == GRF) return mlen;