nvk: Use NVIDIA_VENDOR_ID in pdev try_create()
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Mon, 17 Jul 2023 20:00:33 +0000 (15:00 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:06 +0000 (21:32 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_physical_device.c

index 860e351..06e7716 100644 (file)
@@ -574,7 +574,7 @@ nvk_physical_device_try_create(struct nvk_instance *instance,
 
    if (!(drm_device->available_nodes & (1 << DRM_NODE_RENDER)) ||
        drm_device->bustype != DRM_BUS_PCI ||
-       drm_device->deviceinfo.pci->vendor_id != 0x10de)
+       drm_device->deviceinfo.pci->vendor_id != NVIDIA_VENDOR_ID)
       return VK_ERROR_INCOMPATIBLE_DRIVER;
 
    struct nouveau_ws_device *ndev = nouveau_ws_device_new(drm_device);