Remove some dead code in TextureVk.

Found via the code coverage reports.

Bug: None
Change-Id: I3cd5911a627932cfde1bafd8353eef28993bbd42
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122120
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2023-03-01 03:39:58 +00:00 committed by Dawn LUCI CQ
parent 28159c67af
commit 383b5b3f8d
1 changed files with 4 additions and 3 deletions

View File

@ -495,9 +495,10 @@ VkImageUsageFlags VulkanImageUsage(wgpu::TextureUsage usage, const Format& forma
flags |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
}
}
if (usage & kReadOnlyRenderAttachment) {
flags |= VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
}
// Choosing Vulkan image usages should not know about kReadOnlyRenderAttachment because that's
// a property of when the image is used, not of the creation.
ASSERT(!(usage & kReadOnlyRenderAttachment));
return flags;
}