summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_device.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-08-09 10:36:06 +0200
committerChia-I Wu <[email protected]>2019-03-11 10:01:33 -0700
commit7922d50bd4810c203226c70f10b43255e20317d4 (patch)
tree183c770afa624b9ad6201d6546ac35ac26fe1190 /src/freedreno/vulkan/tu_device.c
parentc63cb15745919acdd825e0676eb09664a772ef9c (diff)
turnip: Fix up detection of device.
Diffstat (limited to 'src/freedreno/vulkan/tu_device.c')
-rw-r--r--src/freedreno/vulkan/tu_device.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index 4b86bd507fa..7e0f7638b8c 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -98,14 +98,14 @@ tu_physical_device_init(struct tu_physical_device *device,
path);
}
- if (strcmp(version->name, "amdgpu")) {
+ if (strcmp(version->name, "msm")) {
drmFreeVersion(version);
if (master_fd != -1)
close(master_fd);
close(fd);
if (instance->debug_flags & TU_DEBUG_STARTUP)
- tu_logi("Device '%s' is not using the amdgpu kernel driver.", path);
+ tu_logi("Device '%s' is not using the msm kernel driver.", path);
return VK_ERROR_INCOMPATIBLE_DRIVER;
}
@@ -339,8 +339,7 @@ tu_enumerate_devices(struct tu_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 == 0) {
+ devices[i]->bustype == DRM_BUS_PLATFORM) {
result = tu_physical_device_init(instance->physical_devices +
instance->physical_device_count,