Module: Mesa Branch: main Commit: 765aa36b9d26add197b4cc6317037cde1d143615 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=765aa36b9d26add197b4cc6317037cde1d143615
Author: Samuel Pitoiset <[email protected]> Date: Fri May 6 11:17:11 2022 +0200 aco: update LDS allocation granularity for PS on GFX11 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16369> --- src/amd/compiler/aco_ir.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp index 2510495e126..6527dd8b588 100644 --- a/src/amd/compiler/aco_ir.cpp +++ b/src/amd/compiler/aco_ir.cpp @@ -88,7 +88,9 @@ init_program(Program* program, Stage stage, const struct aco_shader_info* info, program->wave_size = info->wave_size; program->lane_mask = program->wave_size == 32 ? s1 : s2; - program->dev.lds_encoding_granule = chip_class >= GFX7 ? 512 : 256; + program->dev.lds_encoding_granule = chip_class >= GFX11 && stage == fragment_fs ? 1024 + : chip_class >= GFX7 ? 512 + : 256; program->dev.lds_alloc_granule = chip_class >= GFX10_3 ? 1024 : program->dev.lds_encoding_granule; program->dev.lds_limit = chip_class >= GFX7 ? 65536 : 32768;
