aco: Add support for nir_var_mem_image
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
This commit is contained in:
parent
cd49706cb1
commit
94b9f25883
|
@ -7080,7 +7080,7 @@ emit_scoped_barrier(isel_context* ctx, nir_intrinsic_instr* instr)
|
||||||
ctx->stage.hw == HWStage::CS || ctx->stage.hw == HWStage::HS || ctx->stage.hw == HWStage::NGG;
|
ctx->stage.hw == HWStage::CS || ctx->stage.hw == HWStage::HS || ctx->stage.hw == HWStage::NGG;
|
||||||
|
|
||||||
unsigned nir_storage = nir_intrinsic_memory_modes(instr);
|
unsigned nir_storage = nir_intrinsic_memory_modes(instr);
|
||||||
if (nir_storage & (nir_var_mem_ssbo | nir_var_mem_global))
|
if (nir_storage & (nir_var_mem_ssbo | nir_var_mem_global | nir_var_mem_image))
|
||||||
storage |= storage_buffer | storage_image; // TODO: split this when NIR gets nir_var_mem_image
|
storage |= storage_buffer | storage_image; // TODO: split this when NIR gets nir_var_mem_image
|
||||||
if (shared_storage_used && (nir_storage & nir_var_mem_shared))
|
if (shared_storage_used && (nir_storage & nir_var_mem_shared))
|
||||||
storage |= storage_shared;
|
storage |= storage_shared;
|
||||||
|
|
Loading…
Reference in New Issue