diff options
author | Daniel Schürmann <[email protected]> | 2019-11-06 18:25:15 +0100 |
---|---|---|
committer | Daniel Schürmann <[email protected]> | 2019-11-07 09:19:50 +0100 |
commit | a47e232ccd1df7a3f5dd1f92722772e8b81c90ed (patch) | |
tree | d81f9d5bf97a5e2b71737833ede6e40ecf45903a /src/amd/compiler | |
parent | b60ed3c7b2491c9bb6f2c1d356c378dd79d53e3c (diff) |
aco: workaround Tonga/Iceland hardware bug
The workaround got accidentally moved to the wrong place
Fixes: 08d510010b7586387e363460b98e6a45bbe97164 aco: increase accuracy of SGPR limits
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/compiler')
-rw-r--r-- | src/amd/compiler/aco_instruction_selection_setup.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index 87868e43089..8a04e719f0b 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -1263,14 +1263,14 @@ setup_isel_context(Program* program, } else if (program->chip_class >= GFX8) { program->physical_sgprs = 800; program->sgpr_alloc_granule = 15; - program->sgpr_limit = 102; - } else { - program->physical_sgprs = 512; - program->sgpr_alloc_granule = 7; if (options->family == CHIP_TONGA || options->family == CHIP_ICELAND) program->sgpr_limit = 94; /* workaround hardware bug */ else - program->sgpr_limit = 104; + program->sgpr_limit = 102; + } else { + program->physical_sgprs = 512; + program->sgpr_alloc_granule = 7; + program->sgpr_limit = 104; } /* TODO: we don't have to allocate VCC if we don't need it */ program->needs_vcc = true; |