Mesa (master): aco: update vgpr_alloc_granule for GFX10.3

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 4 22:04:28 UTC 2020


Module: Mesa
Branch: master
Commit: a5303a3cbea1b32788fad296df2e99500d616a43
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a5303a3cbea1b32788fad296df2e99500d616a43

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Thu Jun 18 14:31:13 2020 +0100

aco: update vgpr_alloc_granule for GFX10.3

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5546>

---

 src/amd/compiler/aco_ir.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_ir.cpp b/src/amd/compiler/aco_ir.cpp
index 75ca80cf2ac..c028e1788c1 100644
--- a/src/amd/compiler/aco_ir.cpp
+++ b/src/amd/compiler/aco_ir.cpp
@@ -101,7 +101,10 @@ void init_program(Program *program, Stage stage, struct radv_shader_info *info,
       program->physical_sgprs = 2560; /* doesn't matter as long as it's at least 128 * 20 */
       program->sgpr_alloc_granule = 127;
       program->sgpr_limit = 106;
-      program->vgpr_alloc_granule = program->wave_size == 32 ? 7 : 3;
+      if (chip_class >= GFX10_3)
+         program->vgpr_alloc_granule = program->wave_size == 32 ? 15 : 7;
+      else
+         program->vgpr_alloc_granule = program->wave_size == 32 ? 7 : 3;
    } else if (program->chip_class >= GFX8) {
       program->physical_sgprs = 800;
       program->sgpr_alloc_granule = 15;



More information about the mesa-commit mailing list