summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-10-05 13:22:44 -0700
committerChad Versace <[email protected]>2015-10-05 13:22:44 -0700
commit8bf021cf3dfdb50b709b7bba65dec8fd9495c74f (patch)
tree8256e3a9636c5d7d8592ebc7e0c69e428d9becdd /src/vulkan/anv_private.h
parent4ffb4549e0aa139c908afd3c1b05e9a3ca6acf40 (diff)
vk: Return anv_image_view_info by value
The struct is only 2 bytes. Returning it on the stack is better than returning a reference into the ELF .data segment.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index 15e5124d857..bc747fcd27c 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -1154,7 +1154,7 @@ struct anv_image_view_info {
bool is_cube:1; /**< RENDER_SURFACE_STATE.CubeFaceEnable* */
};
-const struct anv_image_view_info *
+struct anv_image_view_info
anv_image_view_info_for_vk_image_view_type(VkImageViewType type);
/**