Lines Matching defs:device
102 tu_gralloc_info_other(struct tu_device *device,
127 return vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
135 return vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
149 return vk_errorf(device, VK_ERROR_INVALID_EXTERNAL_HANDLE,
175 tu_gralloc_info_cros(struct tu_device *device,
181 const gralloc_module_t *gralloc = device->gralloc;
197 tu_gralloc_info(struct tu_device *device,
203 if (!device->gralloc) {
206 (const hw_module_t **)&device->gralloc);
213 return vk_startup_errorf(device->instance,
218 const gralloc_module_t *gralloc = device->gralloc;
227 device->gralloc_type = TU_GRALLOC_CROS;
229 device->gralloc_type = TU_GRALLOC_OTHER;
233 if (device->gralloc_type == TU_GRALLOC_CROS) {
234 return tu_gralloc_info_cros(device, gralloc_info, dma_buf, modifier);
236 return tu_gralloc_info_other(device, gralloc_info, dma_buf, modifier);
308 TU_FROM_HANDLE(tu_device, device, device_h);
309 struct tu_physical_device *phys_dev = device->physical_device;
343 return vk_errorf(device, result,
353 setup_gralloc0_usage(struct tu_device *device, VkFormat format,
370 return vk_errorf(device, VK_ERROR_FORMAT_NOT_SUPPORTED,
399 TU_FROM_HANDLE(tu_device, device, device_h);
407 return setup_gralloc0_usage(device, format, imageUsage, grallocUsage);
419 TU_FROM_HANDLE(tu_device, device, device_h);
431 result = setup_gralloc0_usage(device, format, imageUsage, &grallocUsage);