i965/cs: Use dispatch width of 8 for cs terminate payload setup
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 16 Jul 2015 22:07:05 +0000 (15:07 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 17 Jul 2015 04:37:24 +0000 (21:37 -0700)
This prevents an assertion failure in brw_fs_live_variables.cpp,
fs_live_variables::setup_one_write: 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_visitor.cpp

index 94d6a584424211a3270aecb7e5ef23c8ed44e7e9..d6a60a7cff70686a0eed56b70664984343b5bfcc 100644 (file)
@@ -1960,7 +1960,7 @@ fs_visitor::emit_cs_terminate()
     */
    struct brw_reg g0 = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD);
    fs_reg payload = fs_reg(GRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD);
-   bld.exec_all().MOV(payload, g0);
+   bld.group(8, 0).exec_all().MOV(payload, g0);
 
    /* Send a message to the thread spawner to terminate the thread. */
    fs_inst *inst = bld.exec_all()