diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-22 18:21:33 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-25 10:46:55 +0200 |
commit | 45ea90ef1f1018d51f7c58e1de593f8534c14e00 (patch) | |
tree | 560404a7a31aa0b58d8ea73215ea415deb3fc7bf /src/amd/vulkan/radv_device.c | |
parent | d2cd9deeb8db5941e99b149fa637f711198ca741 (diff) |
radv: make use of ATI_VENDOR_ID everywhere
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 9e654a511f3..6171408ced1 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -564,7 +564,7 @@ radv_enumerate_devices(struct radv_instance *instance) for (unsigned i = 0; i < (unsigned)max_devices; i++) { if (devices[i]->available_nodes & 1 << DRM_NODE_RENDER && devices[i]->bustype == DRM_BUS_PCI && - devices[i]->deviceinfo.pci->vendor_id == 0x1002) { + devices[i]->deviceinfo.pci->vendor_id == ATI_VENDOR_ID) { result = radv_physical_device_init(instance->physicalDevices + instance->physicalDeviceCount, @@ -827,7 +827,7 @@ void radv_GetPhysicalDeviceProperties( *pProperties = (VkPhysicalDeviceProperties) { .apiVersion = VK_MAKE_VERSION(1, 0, 42), .driverVersion = vk_get_driver_version(), - .vendorID = 0x1002, + .vendorID = ATI_VENDOR_ID, .deviceID = pdevice->rad_info.pci_id, .deviceType = pdevice->rad_info.has_dedicated_vram ? VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU : VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU, .limits = limits, |