From 62dc4be470fcfd6416e9e5c62e2a744988ef2759 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 25 Jan 2022 21:29:40 -0800 Subject: [PATCH] softpipe: Initialize the CS dispatch mask at machine setup time. It's not modified later, so no need to reset it per barrier or per workgroup. Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/softpipe/sp_compute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/softpipe/sp_compute.c b/src/gallium/drivers/softpipe/sp_compute.c index 73d462fb160..ba389620a21 100644 --- a/src/gallium/drivers/softpipe/sp_compute.c +++ b/src/gallium/drivers/softpipe/sp_compute.c @@ -95,7 +95,6 @@ cs_run(const struct sp_compute_shader *cs, machine->SystemValue[i].xyzw[2].i[j] = g_d; } } - machine->NonHelperMask = (1 << 1) - 1; } tgsi_exec_machine_run(machine, restart ? machine->pc : 0); @@ -204,6 +203,7 @@ softpipe_launch_grid(struct pipe_context *context, machines[idx]->LocalMem = local_mem; machines[idx]->LocalMemSize = cs->shader.req_local_mem; + machines[idx]->NonHelperMask = 0x1; cs_prepare(cs, machines[idx], local_x, local_y, local_z, grid_size[0], grid_size[1], grid_size[2],