|
|
@ -322,14 +322,14 @@ vkr_context_get_blob_locked(struct virgl_context *base, |
|
|
|
return -EINVAL; |
|
|
|
return -EINVAL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
VkResult result = ctx->instance->get_memory_fd( |
|
|
|
VkResult result = |
|
|
|
mem->device->base.handle.device, |
|
|
|
mem->device->get_memory_fd(mem->device->base.handle.device, |
|
|
|
&(VkMemoryGetFdInfoKHR){ |
|
|
|
&(VkMemoryGetFdInfoKHR){ |
|
|
|
.sType = VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR, |
|
|
|
.sType = VK_STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR, |
|
|
|
.memory = mem->base.handle.device_memory, |
|
|
|
.memory = mem->base.handle.device_memory, |
|
|
|
.handleType = handle_type, |
|
|
|
.handleType = handle_type, |
|
|
|
}, |
|
|
|
}, |
|
|
|
&fd); |
|
|
|
&fd); |
|
|
|
if (result != VK_SUCCESS) |
|
|
|
if (result != VK_SUCCESS) |
|
|
|
return -EINVAL; |
|
|
|
return -EINVAL; |
|
|
|
} |
|
|
|
} |
|
|
|