OSDN Git Service

Build fix
authorAlexis Hetu <sugoi@google.com>
Fri, 8 Mar 2019 20:15:20 +0000 (15:15 -0500)
committerAlexis Hétu <sugoi@google.com>
Fri, 8 Mar 2019 20:25:13 +0000 (20:25 +0000)
Bug swiftshader:125

Change-Id: If24564a16d880a11e782e5f6b4f035e612255076
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26573
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
src/Vulkan/VkImageView.cpp

index 34e4f93..db6532c 100644 (file)
@@ -123,7 +123,7 @@ void *ImageView::getOffsetPointer(const VkOffset3D& offset, VkImageAspectFlagBit
 {
        VkImageSubresourceLayers imageSubresourceLayers =
        {
-               aspect,
+               static_cast<VkImageAspectFlags>(aspect),
                subresourceRange.baseMipLevel,
                subresourceRange.baseArrayLayer,
                subresourceRange.layerCount