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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14728>
This commit is contained in:
Emma Anholt 2022-01-25 21:29:40 -08:00 committed by Marge Bot
parent 2fe2a2b080
commit 62dc4be470
1 changed files with 1 additions and 1 deletions

View File

@ -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],