Mesa (main): aco: update LDS allocation granularity for PS on GFX11
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu May 12 16:08:17 UTC 2022
Module: Mesa
Branch: main
Commit: 765aa36b9d26add197b4cc6317037cde1d143615
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=765aa36b9d26add197b4cc6317037cde1d143615
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri May 6 11:17:11 2022 +0200
aco: update LDS allocation granularity for PS on GFX11
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
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;
More information about the mesa-commit
mailing list