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)
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

index ff0675d146f7c8a1f4f8ac1a587d6bd421520274..2e3eb05b7969b65d812baad9c79b2d8e7dfb0aa1 100644 (file)
@@ -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;