From 8a16498cc63653e374cfa672c2423f7e3d283b7b Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 5 May 2020 11:54:59 +0100 Subject: [PATCH] aco: use storage_scratch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fossil-db (Navi): Totals from 9 (0.01% of 114665) affected shaders: VMEM: 14456 -> 15312 (+5.92%) VClause: 336 -> 327 (-2.68%) Helps 9 Dark Souls 3 shaders a little. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 4539ee64c3a..7fc35ccc0cd 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -6958,7 +6958,7 @@ void visit_load_scratch(isel_context *ctx, nir_intrinsic_instr *instr) { info.align_mul = nir_intrinsic_align_mul(instr); info.align_offset = nir_intrinsic_align_offset(instr); info.swizzle_component_size = ctx->program->chip_class <= GFX8 ? 4 : 0; - info.sync = memory_sync_info(storage_buffer, semantic_private); + info.sync = memory_sync_info(storage_scratch, semantic_private); info.soffset = ctx->program->scratch_offset; emit_scratch_load(ctx, bld, &info); } @@ -6982,7 +6982,7 @@ void visit_store_scratch(isel_context *ctx, nir_intrinsic_instr *instr) { for (unsigned i = 0; i < write_count; i++) { aco_opcode op = get_buffer_store_op(false, write_datas[i].bytes()); Instruction *instr = bld.mubuf(op, rsrc, offset, ctx->program->scratch_offset, write_datas[i], offsets[i], true, true); - static_cast(instr)->sync = memory_sync_info(storage_buffer, semantic_private); + static_cast(instr)->sync = memory_sync_info(storage_scratch, semantic_private); } } -- 2.30.2