Mesa (main): softpipe: Initialize the CS dispatch mask at machine setup time.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 26 23:25:43 UTC 2022
Module: Mesa
Branch: main
Commit: 62dc4be470fcfd6416e9e5c62e2a744988ef2759
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=62dc4be470fcfd6416e9e5c62e2a744988ef2759
Author: Emma Anholt <emma at anholt.net>
Date: Tue Jan 25 21:29:40 2022 -0800
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 at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14728>
---
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],
More information about the mesa-commit
mailing list