i965/cs: Use exec all for CS terminate
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 11 Jun 2015 16:44:54 +0000 (09:44 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 12 Jun 2015 22:12:39 +0000 (15:12 -0700)
This prevents an assertion from being hit with SIMD16:

Assertion `inst->exec_size == dispatch_width() || force_writemask_all' failed.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index c41284b0a5e50e76c349f3d0498c2c114d2824a6..588966b66f1c5736c6243bb836c083343778432b 100644 (file)
@@ -1948,7 +1948,8 @@ fs_visitor::emit_cs_terminate()
    bld.exec_all().MOV(payload, g0);
 
    /* Send a message to the thread spawner to terminate the thread. */
-   fs_inst *inst = bld.emit(CS_OPCODE_CS_TERMINATE, reg_undef, payload);
+   fs_inst *inst = bld.exec_all()
+                      .emit(CS_OPCODE_CS_TERMINATE, reg_undef, payload);
    inst->eot = true;
 }