[Mesa-dev] [RFC v2 06/22] anv: Annotate anv_get_*format() as pure
Louis-Francis Ratté-Boulianne
lfrb at collabora.com
Thu Aug 31 04:24:05 UTC 2017
From: Chad Versace <chadversary at chromium.org>
---
src/intel/vulkan/anv_private.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 7b4e9dfbe0..55840d5325 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -2033,7 +2033,7 @@ struct anv_format {
struct anv_format ATTRIBUTE_PURE
anv_get_raw_format(const struct gen_device_info *devinfo, VkFormat vk_format);
-struct anv_format
+struct anv_format ATTRIBUTE_PURE
anv_get_format(const struct gen_device_info *devinfo, VkFormat format,
VkImageAspectFlags aspect, VkImageTiling tiling);
@@ -2042,7 +2042,7 @@ anv_get_raw_isl_format(const struct gen_device_info *devinfo, VkFormat vk_format
return anv_get_raw_format(devinfo, vk_format).isl_format;
}
-static inline enum isl_format
+static inline enum isl_format ATTRIBUTE_PURE
anv_get_isl_format(const struct gen_device_info *devinfo, VkFormat vk_format,
VkImageAspectFlags aspect, VkImageTiling tiling)
{
--
2.13.0
More information about the mesa-dev
mailing list