Remove useless const on ImageView::getImageSizeInBytes return value This does nothing, and breaks the Android build since the toolchain there uses -Wignored-qualifiers. This is the only case of it in SwiftShader. Change-Id: Ida06e695bd3f303200864a4fd2a797cb4c78dc15 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29888 Reviewed-by: Ben Clayton <bclayton@google.com> Tested-by: Chris Forbes <chrisforbes@google.com>
diff --git a/src/Vulkan/VkImageView.hpp b/src/Vulkan/VkImageView.hpp index e4c4d81..048af64 100644 --- a/src/Vulkan/VkImageView.hpp +++ b/src/Vulkan/VkImageView.hpp
@@ -50,7 +50,7 @@ const VkComponentMapping &getComponentMapping() const { return components; } const VkImageSubresourceRange &getSubresourceRange() const { return subresourceRange; } - const size_t getImageSizeInBytes() const { return image->getMemoryRequirements().size; } + size_t getImageSizeInBytes() const { return image->getMemoryRequirements().size; } private: bool imageTypesMatch(VkImageType imageType) const;