Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13427>
list_inithead(&device->queues);
+ device->drm_fd = -1;
+
#ifdef ANDROID
mtx_init(&device->swapchain_private_mtx, mtx_plain);
device->swapchain_private = NULL;
*/
VkResult (*check_status)(struct vk_device *device);
+ /* Set by vk_device_set_drm_fd() */
+ int drm_fd;
+
#ifdef ANDROID
mtx_t swapchain_private_mtx;
struct hash_table *swapchain_private;
const VkDeviceCreateInfo *pCreateInfo,
const VkAllocationCallbacks *alloc);
+static inline void
+vk_device_set_drm_fd(struct vk_device *device, int drm_fd)
+{
+ device->drm_fd = drm_fd;
+}
+
void
vk_device_finish(struct vk_device *device);