diff options
author | Jason Ekstrand <[email protected]> | 2016-08-30 17:49:32 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-09-13 12:40:12 -0700 |
commit | 52fa3e83472ff6ad2652bfebc67b9f6860d64f24 (patch) | |
tree | 11a6cd1c84140d01b733bba6825869e01088f834 /src/intel/vulkan/anv_image.c | |
parent | 8f780af968ffda8c4cc241017a2bca1338176167 (diff) |
anv: Make image_get_surface_for_aspect_mask const
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r-- | src/intel/vulkan/anv_image.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 63b8c86f5c3..3ab11e749ca 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -392,7 +392,7 @@ anv_image_view_init(struct anv_image_view *iview, break; } - struct anv_surface *surface = + const struct anv_surface *surface = anv_image_get_surface_for_aspect_mask(image, range->aspectMask); iview->image = image; @@ -653,8 +653,9 @@ anv_DestroyBufferView(VkDevice _device, VkBufferView bufferView, anv_free2(&device->alloc, pAllocator, view); } -struct anv_surface * -anv_image_get_surface_for_aspect_mask(struct anv_image *image, VkImageAspectFlags aspect_mask) +const struct anv_surface * +anv_image_get_surface_for_aspect_mask(const struct anv_image *image, + VkImageAspectFlags aspect_mask) { switch (aspect_mask) { case VK_IMAGE_ASPECT_COLOR_BIT: |