radv: fix null winsys gpu_info array
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 3 Apr 2020 16:32:24 +0000 (17:32 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 17:40:32 +0000 (17:40 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Fixes: de550805c5d ('radv/winsys: spoof some values for num_render_backends in the null winsys')
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4437>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4437>

src/amd/vulkan/winsys/null/radv_null_winsys.c

index 67c5d40..fa23ba1 100644 (file)
 
 /* 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,