From ea51f8f79ac43ff00d78cd53266f92125b2d5fd4 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 3 Apr 2020 17:32:24 +0100 Subject: radv: fix null winsys gpu_info array Signed-off-by: Rhys Perry Fixes: de550805c5d ('radv/winsys: spoof some values for num_render_backends in the null winsys') Reviewed-by: Samuel Pitoiset Tested-by: Marge Bot Part-of: --- src/amd/vulkan/winsys/null/radv_null_winsys.c | 55 +++++++++++++-------------- 1 file changed, 27 insertions(+), 28 deletions(-) (limited to 'src/amd/vulkan/winsys') 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, -- cgit v1.2.3