[Mesa-dev] [PATCH 28/38] i965/fs: Migrate CS terminate message to the IR builder.
Francisco Jerez
currojerez at riseup.net
Thu Jun 4 09:05:17 PDT 2015
---
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 92c2056..d73f890 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -2018,11 +2018,10 @@ 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);
- fs_inst *inst = emit(MOV(payload, g0));
- inst->force_writemask_all = true;
+ bld.exec_all().MOV(payload, g0);
/* Send a message to the thread spawner to terminate the thread. */
- inst = emit(CS_OPCODE_CS_TERMINATE, reg_undef, payload);
+ fs_inst *inst = bld.emit(CS_OPCODE_CS_TERMINATE, reg_undef, payload);
inst->eot = true;
}
--
2.3.5
More information about the mesa-dev
mailing list