librocdxg: fix vgpr count

refer to https://github.com/ROCm/rocm-systems/pull/1807

Signed-off-by: Flora Cui <flora.cui@amd.com>
This commit is contained in:
Flora Cui committed 2025-12-24 13:30:45 +08:00
1 orang tua 9bf8eb8c1e
melakukan 4fb2ed2c5a
1 file changed
+4 -1
+4 -1
Melihat File
@@ -30,7 +30,10 @@
uint32_t get_vgpr_size_per_cu(HSA_ENGINE_ID id) {
uint32_t vgpr_size = 0x40000;
if (id.ui32.Major >= 11) {
uint32_t gfxv = HSA_GET_GFX_VERSION_FULL(id.ui32);
if( gfxv == 0x1100 || gfxv == 0x1101 ||
gfxv == 0x1151 ||
gfxv == 0x1200 || gfxv ==0x1201) {
vgpr_size = 0x60000;
}