Lines Matching refs:device

93    /** Allocator used to create this device
96 * device-level create function such as vkCreateImage().
100 /** Pointer to the physical device */
122 * 2. Add vk_enqueue_unless_primary_device_entrypoint_table to your device
137 /** Checks the status of this device
141 * wait operation to ensure the device is still around. This gives the
142 * driver a hook to ask the kernel if its device is still valid. If the
143 * kernel says the device has been lost, it MUST call vk_device_set_lost().
147 VkResult (*check_status)(struct vk_device *device);
167 VkResult (*create_sync_for_memory)(struct vk_device *device,
230 /** Per-device submit mode
232 * This represents the device-wide submit strategy which may be different
252 * the physical device and returns `VK_ERROR_EXTENSION_NOT_PRESENT` if an
258 * @param[out] device The device to initialize
259 * @param[in] physical_device The physical device
267 vk_device_init(struct vk_device *device,
274 vk_device_set_drm_fd(struct vk_device *device, int drm_fd)
276 device->drm_fd = drm_fd;
281 * @param[out] device The device to tear down
284 vk_device_finish(struct vk_device *device);
286 /** Enables threaded submit on this device
295 void vk_device_enable_threaded_submit(struct vk_device *device);
298 vk_device_supports_threaded_submit(const struct vk_device *device)
300 return device->submit_mode == VK_QUEUE_SUBMIT_MODE_THREADED ||
301 device->submit_mode == VK_QUEUE_SUBMIT_MODE_THREADED_ON_DEMAND;
304 VkResult vk_device_flush(struct vk_device *device);
307 _vk_device_set_lost(struct vk_device *device,
311 #define vk_device_set_lost(device, ...) \
312 _vk_device_set_lost(device, __FILE__, __LINE__, __VA_ARGS__)
314 void _vk_device_report_lost(struct vk_device *device);
317 vk_device_is_lost_no_report(struct vk_device *device)
319 return p_atomic_read(&device->_lost.lost) > 0;
323 vk_device_is_lost(struct vk_device *device)
325 int lost = vk_device_is_lost_no_report(device);
326 if (unlikely(lost && !device->_lost.reported))
327 _vk_device_report_lost(device);
332 vk_device_check_status(struct vk_device *device)
334 if (vk_device_is_lost(device))
337 if (!device->check_status)
340 VkResult result = device->check_status(device);
344 assert(vk_device_is_lost_no_report(device));
350 vk_device_get_proc_addr(const struct vk_device *device,