Module: Mesa Branch: master Commit: 8a16498cc63653e374cfa672c2423f7e3d283b7b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a16498cc63653e374cfa672c2423f7e3d283b7b
Author: Rhys Perry <[email protected]> Date: Tue May 5 11:54:59 2020 +0100 aco: use storage_scratch 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 <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4905> --- 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<MUBUF_instruction *>(instr)->sync = memory_sync_info(storage_buffer, semantic_private); + static_cast<MUBUF_instruction *>(instr)->sync = memory_sync_info(storage_scratch, semantic_private); } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
