summaryrefslogtreecommitdiff
path: root/src/freedreno
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2023-02-16 11:24:00 -0800
committerMarge Bot <emma+marge@anholt.net>2023-02-25 17:02:34 +0000
commit73dfcbf7e8583bc916e80e35d1c904d4411f8720 (patch)
tree2d49a567e56124cf01fd2ea3bfa6fd9f53e6ba37 /src/freedreno
parent08ba87481bcac078b8c6ac4c1f448cc441bb813f (diff)
downloadmesa-73dfcbf7e8583bc916e80e35d1c904d4411f8720.tar.gz
vk/runtime: Allow enumerate and try_create_for_drm to coexist
For drivers that can support both drm and non-drm kernel mode drivers it is useful to be able to provide both entrypoints. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21394>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/vulkan/tu_kgsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_kgsl.c b/src/freedreno/vulkan/tu_kgsl.c
index 20e9690467f..631b1006b74 100644
--- a/src/freedreno/vulkan/tu_kgsl.c
+++ b/src/freedreno/vulkan/tu_kgsl.c
@@ -239,7 +239,7 @@ tu_enumerate_devices(struct vk_instance *vk_instance)
fd = open(path, O_RDWR | O_CLOEXEC);
if (fd < 0) {
if (errno == ENOENT)
- return VK_SUCCESS;
+ return VK_ERROR_INCOMPATIBLE_DRIVER;
return vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
"failed to open device %s", path);