From 67920a37b4853056fa5ce2b781ea08a13b4e5acb Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 24 Jun 2022 11:10:57 +0100 Subject: [PATCH] Update RGA backend to include gfx1035 --- renderdoc/driver/ihv/amd/amd_isa_devices.cpp | 1 + renderdoc/driver/ihv/amd/amd_isa_devices.h | 2 +- .../driver/ihv/amd/official/RGA/Common/AsicReg/devices.h | 8 +++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/ihv/amd/amd_isa_devices.cpp b/renderdoc/driver/ihv/amd/amd_isa_devices.cpp index 57ca73780..301ab3435 100644 --- a/renderdoc/driver/ihv/amd/amd_isa_devices.cpp +++ b/renderdoc/driver/ihv/amd/amd_isa_devices.cpp @@ -62,6 +62,7 @@ const GCNISA::asic GCNISA::asicInfo[] = { {"RDNA2 (gfx1031)", "1031", FAMILY_NV, NV_NAVI22_P_A0, "gfx1031"}, {"RDNA2 (gfx1032)", "1032", FAMILY_NV, NV_NAVI23_P_A0, "gfx1032"}, {"RDNA2 (gfx1034)", "1034", FAMILY_NV, NV_NAVI24_P_A0, "gfx1034"}, + {"RDNA2 (gfx1035)", "1035", FAMILY_RMB, REMBRANDT_A0, "gfx1035"}, }; RDCCOMPILE_ASSERT(ARRAY_COUNT(GCNISA::asicInfo) == GCNISA::asicCount, "Mismatched array count"); diff --git a/renderdoc/driver/ihv/amd/amd_isa_devices.h b/renderdoc/driver/ihv/amd/amd_isa_devices.h index f315b06dc..e3b49f002 100644 --- a/renderdoc/driver/ihv/amd/amd_isa_devices.h +++ b/renderdoc/driver/ihv/amd/amd_isa_devices.h @@ -36,7 +36,7 @@ struct asic }; const int legacyAsicCount = 20; -const int asicCount = 30; +const int asicCount = 31; extern const asic asicInfo[]; }; // namespace GCNISA diff --git a/renderdoc/driver/ihv/amd/official/RGA/Common/AsicReg/devices.h b/renderdoc/driver/ihv/amd/official/RGA/Common/AsicReg/devices.h index e240a624f..8338c7e09 100644 --- a/renderdoc/driver/ihv/amd/official/RGA/Common/AsicReg/devices.h +++ b/renderdoc/driver/ihv/amd/official/RGA/Common/AsicReg/devices.h @@ -125,6 +125,11 @@ enum { AI_UNKNOWN = 0xFF }; +enum +{ + REMBRANDT_A0 = 1 +}; + #ifndef _ATIID_H #define _ATIID_H @@ -150,7 +155,8 @@ enum { #define FAMILY_NV 143 +#define FAMILY_RMB 146 + #define ATI_VENDOR_ID 0x1002 - #endif // _ATIID_H