aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/winsys
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-04-03 17:32:24 +0100
committerMarge Bot <[email protected]>2020-04-03 17:40:32 +0000
commitea51f8f79ac43ff00d78cd53266f92125b2d5fd4 (patch)
tree5a7b137d741e032fa0f422b000a4c04ac5ff28ec /src/amd/vulkan/winsys
parent319158a814ae0833573d5e4ff7150504aebae59b (diff)
radv: fix null winsys gpu_info array
Signed-off-by: Rhys Perry <[email protected]> Fixes: de550805c5d ('radv/winsys: spoof some values for num_render_backends in the null winsys') Reviewed-by: Samuel Pitoiset <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4437> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4437>
Diffstat (limited to 'src/amd/vulkan/winsys')
-rw-r--r--src/amd/vulkan/winsys/null/radv_null_winsys.c55
1 files changed, 27 insertions, 28 deletions
diff --git a/src/amd/vulkan/winsys/null/radv_null_winsys.c b/src/amd/vulkan/winsys/null/radv_null_winsys.c
index 67c5d403475..fa23ba1d10a 100644
--- a/src/amd/vulkan/winsys/null/radv_null_winsys.c
+++ b/src/amd/vulkan/winsys/null/radv_null_winsys.c
@@ -33,37 +33,36 @@
/* Hardcode some GPU info that are needed for the driver or for some tools. */
static const struct {
- enum radeon_family family;
uint32_t pci_id;
uint32_t num_render_backends;
} gpu_info[] = {
- { CHIP_TAHITI, 0x6780, 8 },
- { CHIP_PITCAIRN, 0x6800, 8, },
- { CHIP_VERDE, 0x6820, 4 },
- { CHIP_OLAND, 0x6060, 2 },
- { CHIP_HAINAN, 0x6660, 2 },
- { CHIP_BONAIRE, 0x6640, 4 },
- { CHIP_KAVERI, 0x1304, 2 },
- { CHIP_KABINI, 0x9830, 2 },
- { CHIP_HAWAII, 0x67A0, 16 },
- { CHIP_TONGA, 0x6920, 8 },
- { CHIP_ICELAND, 0x6900, 2 },
- { CHIP_CARRIZO, 0x9870, 2 },
- { CHIP_FIJI, 0x7300, 16 },
- { CHIP_STONEY, 0x98E4, 2 },
- { CHIP_POLARIS10, 0x67C0, 8 },
- { CHIP_POLARIS11, 0x67E0, 4 },
- { CHIP_POLARIS12, 0x6980, 4 },
- { CHIP_VEGAM, 0x694C, 4 },
- { CHIP_VEGA10, 0x6860, 16 },
- { CHIP_VEGA12, 0x69A0, 8 },
- { CHIP_VEGA20, 0x66A0, 16 },
- { CHIP_RAVEN, 0x15DD, 2 },
- { CHIP_RENOIR, 0x1636, 2 },
- { CHIP_ARCTURUS, 0x738C, 2 },
- { CHIP_NAVI10, 0x7310, 16 },
- { CHIP_NAVI12, 0x7360, 8 },
- { CHIP_NAVI14, 0x7340, 8 },
+ [CHIP_TAHITI] = { 0x6780, 8 },
+ [CHIP_PITCAIRN] = { 0x6800, 8, },
+ [CHIP_VERDE] = { 0x6820, 4 },
+ [CHIP_OLAND] = { 0x6060, 2 },
+ [CHIP_HAINAN] = { 0x6660, 2 },
+ [CHIP_BONAIRE] = { 0x6640, 4 },
+ [CHIP_KAVERI] = { 0x1304, 2 },
+ [CHIP_KABINI] = { 0x9830, 2 },
+ [CHIP_HAWAII] = { 0x67A0, 16 },
+ [CHIP_TONGA] = { 0x6920, 8 },
+ [CHIP_ICELAND] = { 0x6900, 2 },
+ [CHIP_CARRIZO] = { 0x9870, 2 },
+ [CHIP_FIJI] = { 0x7300, 16 },
+ [CHIP_STONEY] = { 0x98E4, 2 },
+ [CHIP_POLARIS10] = { 0x67C0, 8 },
+ [CHIP_POLARIS11] = { 0x67E0, 4 },
+ [CHIP_POLARIS12] = { 0x6980, 4 },
+ [CHIP_VEGAM] = { 0x694C, 4 },
+ [CHIP_VEGA10] = { 0x6860, 16 },
+ [CHIP_VEGA12] = { 0x69A0, 8 },
+ [CHIP_VEGA20] = { 0x66A0, 16 },
+ [CHIP_RAVEN] = { 0x15DD, 2 },
+ [CHIP_RENOIR] = { 0x1636, 2 },
+ [CHIP_ARCTURUS] = { 0x738C, 2 },
+ [CHIP_NAVI10] = { 0x7310, 16 },
+ [CHIP_NAVI12] = { 0x7360, 8 },
+ [CHIP_NAVI14] = { 0x7340, 8 },
};
static void radv_null_winsys_query_info(struct radeon_winsys *rws,