diff options
author | Chad Versace <[email protected]> | 2015-10-05 13:22:44 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-05 13:22:44 -0700 |
commit | 8bf021cf3dfdb50b709b7bba65dec8fd9495c74f (patch) | |
tree | 8256e3a9636c5d7d8592ebc7e0c69e428d9becdd /src/vulkan/anv_image.c | |
parent | 4ffb4549e0aa139c908afd3c1b05e9a3ca6acf40 (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_image.c')
-rw-r--r-- | src/vulkan/anv_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/anv_image.c b/src/vulkan/anv_image.c index 43245297f0e..248df3d9b42 100644 --- a/src/vulkan/anv_image.c +++ b/src/vulkan/anv_image.c @@ -61,10 +61,10 @@ anv_image_view_info_table[] = { #undef INFO }; -const struct anv_image_view_info * +struct anv_image_view_info anv_image_view_info_for_vk_image_view_type(VkImageViewType type) { - return &anv_image_view_info_table[type]; + return anv_image_view_info_table[type]; } static const struct anv_surf_type_limits { |