radv/gfx12: don't add workgroup id shader args
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29330>
This commit is contained in:
@@ -582,7 +582,10 @@ declare_shader_args(const struct radv_device *device, const struct radv_graphics
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (info->cs.uses_block_id[i]) {
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.workgroup_ids[i]);
|
||||
if (gfx_level >= GFX12)
|
||||
args->ac.workgroup_ids[i].used = true;
|
||||
else
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.workgroup_ids[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user