diff options
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index bcf34755a97..040d0c7806b 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1518,12 +1518,16 @@ struct anv_format { struct anv_format_swizzle swizzle; }; -const struct anv_format * -anv_format_for_vk_format(VkFormat format); +struct anv_format +anv_get_format(VkFormat format, VkImageAspectFlags aspect, + VkImageTiling tiling); -enum isl_format -anv_get_isl_format(VkFormat format, VkImageAspectFlags aspect, - VkImageTiling tiling, struct anv_format_swizzle *swizzle); +static inline enum isl_format +anv_get_isl_format(VkFormat vk_format, VkImageAspectFlags aspect, + VkImageTiling tiling) +{ + return anv_get_format(vk_format, aspect, tiling).isl_format; +} /** * Subsurface of an anv_image. |