vulkan/wsi: Disable dma-buf sync file if ENOSYS is returned
ENOSYS is commented as "Invalid system call number". This is returned
by qemu-user for unbridged ioctls.
Fixes: 30b57f10b3
("vulkan/wsi: Signal semaphores and fences from the dma-buf")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17325>
This commit is contained in:
parent
a577acf8f6
commit
d5884a716f
|
@ -68,7 +68,7 @@ wsi_dma_buf_export_sync_file(int dma_buf_fd, int *sync_file_fd)
|
|||
};
|
||||
int ret = drmIoctl(dma_buf_fd, DMA_BUF_IOCTL_EXPORT_SYNC_FILE_WSI, &export);
|
||||
if (ret) {
|
||||
if (errno == ENOTTY || errno == EBADF) {
|
||||
if (errno == ENOTTY || errno == EBADF || errno == ENOSYS) {
|
||||
no_dma_buf_sync_file = true;
|
||||
return VK_ERROR_FEATURE_NOT_PRESENT;
|
||||
} else {
|
||||
|
@ -95,7 +95,7 @@ wsi_dma_buf_import_sync_file(int dma_buf_fd, int sync_file_fd)
|
|||
};
|
||||
int ret = drmIoctl(dma_buf_fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE_WSI, &import);
|
||||
if (ret) {
|
||||
if (errno == ENOTTY || errno == EBADF) {
|
||||
if (errno == ENOTTY || errno == EBADF || errno == ENOSYS) {
|
||||
no_dma_buf_sync_file = true;
|
||||
return VK_ERROR_FEATURE_NOT_PRESENT;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue