mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
aco: disable SMEM stores on GFX10.3
These are removed in GFX10.3 Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5546>
This commit is contained in:
parent
b811b1d083
commit
41c901b7df
2 changed files with 3 additions and 1 deletions
|
|
@ -6303,6 +6303,7 @@ void visit_store_ssbo(isel_context *ctx, nir_intrinsic_instr *instr)
|
|||
|
||||
bool smem = !nir_src_is_divergent(instr->src[2]) &&
|
||||
ctx->options->chip_class >= GFX8 &&
|
||||
ctx->options->chip_class < GFX10_3 &&
|
||||
(elem_size_bytes >= 4 || can_subdword_ssbo_store_use_smem(instr)) &&
|
||||
allow_smem;
|
||||
if (smem)
|
||||
|
|
|
|||
|
|
@ -367,7 +367,8 @@ void fill_desc_set_info(isel_context *ctx, nir_function_impl *impl)
|
|||
res = intrin->src[0].ssa;
|
||||
break;
|
||||
case nir_intrinsic_store_ssbo:
|
||||
if (nir_src_is_divergent(intrin->src[2]) || ctx->program->chip_class < GFX8 ||
|
||||
if (nir_src_is_divergent(intrin->src[2]) ||
|
||||
ctx->program->chip_class < GFX8 || ctx->program->chip_class >= GFX10_3 ||
|
||||
(intrin->src[0].ssa->bit_size < 32 && !can_subdword_ssbo_store_use_smem(intrin)))
|
||||
flags |= glc ? has_glc_vmem_store : has_nonglc_vmem_store;
|
||||
res = intrin->src[1].ssa;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue