amd: Add code to enable gfx11.5.1

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27811>
This commit is contained in:
Yifan Zhang 2023-12-11 22:21:55 +08:00 committed by Marge Bot
parent e4d8b4592f
commit 8446604dd4
5 changed files with 10 additions and 2 deletions

View file

@ -102,7 +102,8 @@
#define AMDGPU_GFX1103_R1_RANGE 0x01, 0x80 //# 1 <= x < 128
#define AMDGPU_GFX1103_R2_RANGE 0x80, 0xFF //# 128 <= x < max
#define AMDGPU_GFX1150_RANGE 0x01, 0xFF //# 1 <= x < max
#define AMDGPU_GFX1150_RANGE 0x01, 0x40 //# 1 <= x < 64
#define AMDGPU_GFX1151_RANGE 0xC0, 0xFF //# 192 <= x < max
#define AMDGPU_REMBRANDT_RANGE 0x01, 0xFF //# 01 <= x < 255
@ -176,6 +177,7 @@
#define ASICREV_IS_GFX1103_R1(r) ASICREV_IS(r, GFX1103_R1)
#define ASICREV_IS_GFX1103_R2(r) ASICREV_IS(r, GFX1103_R2)
#define ASICREV_IS_GFX1150(r) ASICREV_IS(r, GFX1150)
#define ASICREV_IS_GFX1151(r) ASICREV_IS(r, GFX1151)
#define ASICREV_IS_REMBRANDT(r) ASICREV_IS(r, REMBRANDT)

View file

@ -740,7 +740,7 @@ ChipFamily Gfx11Lib::HwlConvertChipFamily(
}
break;
case FAMILY_GFX1150:
if (ASICREV_IS_GFX1150(chipRevision))
if (ASICREV_IS_GFX1150(chipRevision) || ASICREV_IS_GFX1151(chipRevision))
{
m_settings.isGfx1150 = 1;
}

View file

@ -858,6 +858,7 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
break;
case FAMILY_GFX1150:
identify_chip(GFX1150);
identify_chip(GFX1151);
break;
}

View file

@ -97,6 +97,8 @@ const char *ac_get_family_name(enum radeon_family family)
return "GFX1103_R2";
case CHIP_GFX1150:
return "GFX1150";
case CHIP_GFX1151:
return "GFX1151";
default:
unreachable("Unknown GPU family");
}
@ -227,6 +229,8 @@ const char *ac_get_llvm_processor_name(enum radeon_family family)
return "gfx1103";
case CHIP_GFX1150:
return "gfx1150";
case CHIP_GFX1151:
return "gfx1151";
default:
return "";
}

View file

@ -120,6 +120,7 @@ enum radeon_family
CHIP_GFX1103_R1,
CHIP_GFX1103_R2,
CHIP_GFX1150,
CHIP_GFX1151,
CHIP_LAST,
};