anv: Add a device parameter to format_for_descriptor_type

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3932>
This commit is contained in:
Jason Ekstrand
2020-02-21 12:35:27 -06:00
parent 3d22de05ca
commit d2185f0c3f
4 changed files with 11 additions and 6 deletions

View File

@@ -4208,7 +4208,8 @@ VkResult anv_image_create(VkDevice _device,
VkImage *pImage);
enum isl_format
anv_isl_format_for_descriptor_type(VkDescriptorType type);
anv_isl_format_for_descriptor_type(const struct anv_device *device,
VkDescriptorType type);
static inline VkExtent3D
anv_sanitize_image_extent(const VkImageType imageType,