[Mesa-dev] [PATCH 04/13] anv: Annotate anv_get_*format() as pure
Chad Versace
chadversary at chromium.org
Mon Mar 6 20:40:13 UTC 2017
---
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 60b05186c19..01aeb216597 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -1679,7 +1679,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);
@@ -1688,7 +1688,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.12.0
More information about the mesa-dev
mailing list