[Mesa-dev] [RFC v2 07/23] anv: Annotate anv_get_*format() as pure

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Fri Jul 14 04:59: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 88bda9a9d6..0e9fd26348 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -1990,7 +1990,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);
 
@@ -1999,7 +1999,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