mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
virtio_gpu: Add PCI ID to driver map
Add the virtio-gpu PCI ID so the driver probing works.
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 657dc4f533)
Nominated-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
e8dd18dce6
commit
2a399fccf4
2 changed files with 8 additions and 0 deletions
1
include/pci_ids/virtio_gpu_pci_ids.h
Normal file
1
include/pci_ids/virtio_gpu_pci_ids.h
Normal file
|
|
@ -0,0 +1 @@
|
|||
CHIPSET(0x0010, VIRTGL, VIRTGL)
|
||||
|
|
@ -53,6 +53,12 @@ static const int radeonsi_chip_ids[] = {
|
|||
#undef CHIPSET
|
||||
};
|
||||
|
||||
static const int virtio_gpu_chip_ids[] = {
|
||||
#define CHIPSET(chip, name, family) chip,
|
||||
#include "pci_ids/virtio_gpu_pci_ids.h"
|
||||
#undef CHIPSET
|
||||
};
|
||||
|
||||
static const int vmwgfx_chip_ids[] = {
|
||||
#define CHIPSET(chip, name, family) chip,
|
||||
#include "pci_ids/vmwgfx_pci_ids.h"
|
||||
|
|
@ -78,6 +84,7 @@ static const struct {
|
|||
{ 0x1002, "radeonsi", radeonsi_chip_ids, ARRAY_SIZE(radeonsi_chip_ids), _LOADER_GALLIUM},
|
||||
{ 0x10de, "nouveau_vieux", NULL, -1, _LOADER_DRI, is_nouveau_vieux },
|
||||
{ 0x10de, "nouveau", NULL, -1, _LOADER_GALLIUM },
|
||||
{ 0x1af4, "virtio_gpu", virtio_gpu_chip_ids, ARRAY_SIZE(virtio_gpu_chip_ids), _LOADER_GALLIUM },
|
||||
{ 0x15ad, "vmwgfx", vmwgfx_chip_ids, ARRAY_SIZE(vmwgfx_chip_ids), _LOADER_GALLIUM },
|
||||
{ 0x0000, NULL, NULL, 0 },
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue