aco: fix nir_var_shader_out barriers for task shaders

These will be used in a future commit.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22211>
This commit is contained in:
Rhys Perry 2023-03-31 13:59:59 +01:00 committed by Marge Bot
parent d698bf0523
commit 6974e5479c

View file

@ -7242,7 +7242,8 @@ emit_scoped_barrier(isel_context* ctx, nir_intrinsic_instr* instr)
storage_allowed |= storage_task_payload;
/* Allow VMEM output for all stages that can have outputs. */
if (ctx->stage.hw != HWStage::CS && ctx->stage.hw != HWStage::FS)
if ((ctx->stage.hw != HWStage::CS && ctx->stage.hw != HWStage::FS) ||
ctx->stage.has(SWStage::TS))
storage_allowed |= storage_vmem_output;
/* Workgroup barriers can hang merged shaders that can potentially have 0 threads in either half.