aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2015-07-16 15:04:43 -0700
committerJordan Justen <[email protected]>2015-07-16 21:37:07 -0700
commit7e337859ff98a0caf00fd201a5389933d42d0baa (patch)
tree565eac8eb65422499d6499c3c74ab2ada3aad586 /src
parent4b17f0d9f58637300b0748d1fb702a7e4d51979f (diff)
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 <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp3
1 files changed, 3 insertions, 0 deletions
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;