return tu_lookup_entrypoint_unchecked(pName);
}
-static uint64_t
-tu_wsi_image_get_modifier(VkImage _image)
-{
- TU_FROM_HANDLE(tu_image, image, _image);
-
- if (!image->layout.tile_mode)
- return DRM_FORMAT_MOD_LINEAR;
-
- if (image->layout.ubwc_size)
- return DRM_FORMAT_MOD_QCOM_COMPRESSED;
-
- /* TODO invent a modifier for tiled but not UBWC buffers: */
- return DRM_FORMAT_MOD_INVALID;
-}
-
VkResult
tu_wsi_init(struct tu_physical_device *physical_device)
{
return result;
physical_device->wsi_device.supports_modifiers = true;
- physical_device->wsi_device.image_get_modifier = tu_wsi_image_get_modifier;
return VK_SUCCESS;
}
bool strict_imageCount;
} x11;
- uint64_t (*image_get_modifier)(VkImage image);
-
/* Signals the semaphore such that any wait on the semaphore will wait on
* any reads or writes on the give memory object. This is used to
* implement the semaphore signal operation in vkAcquireNextImage.