Blame SOURCES/0001-dri2-Set-fallback-driver-names-for-Intel-and-AMD-chi.patch

f5ce1e
From 2a9268e4a0ba7b062ded4d361be3119d887aac41 Mon Sep 17 00:00:00 2001
f5ce1e
From: Adam Jackson <ajax@redhat.com>
f5ce1e
Date: Tue, 3 Sep 2019 11:20:58 -0400
f5ce1e
Subject: [PATCH xserver] dri2: Set fallback driver names for Intel and AMD
f5ce1e
 chips
f5ce1e
MIME-Version: 1.0
f5ce1e
Content-Type: text/plain; charset=UTF-8
f5ce1e
Content-Transfer-Encoding: 8bit
f5ce1e
f5ce1e
i965 and radeonsi, respectively, are the drivers that have been
f5ce1e
receiving new hardware support. It's really silly to need to update the
f5ce1e
server side to know specific new devices IDs every time a new ASIC comes
f5ce1e
out.
f5ce1e
f5ce1e
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
f5ce1e
---
f5ce1e
 hw/xfree86/dri2/pci_ids/pci_id_driver_map.h | 9 ++-------
f5ce1e
 1 file changed, 2 insertions(+), 7 deletions(-)
f5ce1e
f5ce1e
diff --git a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
f5ce1e
index da7ea1c1e..04f372279 100644
f5ce1e
--- a/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
f5ce1e
+++ b/hw/xfree86/dri2/pci_ids/pci_id_driver_map.h
f5ce1e
@@ -45,12 +45,6 @@ static const int r600_chip_ids[] = {
f5ce1e
 #undef CHIPSET
f5ce1e
 };
f5ce1e
 
f5ce1e
-static const int radeonsi_chip_ids[] = {
f5ce1e
-#define CHIPSET(chip, name, family) chip,
f5ce1e
-#include "pci_ids/radeonsi_pci_ids.h"
f5ce1e
-#undef CHIPSET
f5ce1e
-};
f5ce1e
-
f5ce1e
 static const int virtio_gpu_chip_ids[] = {
f5ce1e
 #define CHIPSET(chip, name, family) chip,
f5ce1e
 #include "pci_ids/virtio_gpu_pci_ids.h"
f5ce1e
@@ -71,13 +65,14 @@ static const struct {
f5ce1e
 } driver_map[] = {
f5ce1e
    { 0x8086, "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) },
f5ce1e
    { 0x8086, "i965", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) },
f5ce1e
+   { 0x8086, "i965", NULL, -1 },
f5ce1e
 #ifndef DRIVER_MAP_GALLIUM_ONLY
f5ce1e
    { 0x1002, "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) },
f5ce1e
    { 0x1002, "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) },
f5ce1e
 #endif
f5ce1e
    { 0x1002, "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) },
f5ce1e
    { 0x1002, "r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
f5ce1e
-   { 0x1002, "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids) },
f5ce1e
+   { 0x1002, "radeonsi", NULL, -1 },
f5ce1e
    { 0x10de, "nouveau", NULL, -1 },
f5ce1e
    { 0x1af4, "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids) },
f5ce1e
    { 0x15ad, "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids) },
f5ce1e
-- 
f5ce1e
2.23.0
f5ce1e