Commit 15328f69 by Cody Northrop Committed by Commit Bot

Capture/Replay: Don't assert when reading combined depth/stencil

We can't actually read them back at the moment, so this needs a proper fix. In the meantime, the apps we are tracking don't need this value at the beginning of the trace. Test: Angry Birds 2 MEC Bug: angleproject:3662 Bug: angleproject:4688 Bug: b/157672184 Change-Id: I67190092bcce7080edc69714f1ca1194c37d54fb Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2231802Reviewed-by: 's avatarManh Nguyen <nguyenmh@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent 4360c6b9
...@@ -4252,11 +4252,16 @@ angle::Result ImageHelper::readPixelsForGetImage(ContextVk *contextVk, ...@@ -4252,11 +4252,16 @@ angle::Result ImageHelper::readPixelsForGetImage(ContextVk *contextVk,
{ {
if (angleFormat.depthBits > 0) if (angleFormat.depthBits > 0)
{ {
if (angleFormat.stencilBits != 0)
{
// TODO (anglebug.com/4688) Support combined depth stencil for GetTexImage
WARN() << "Unable to pull combined depth/stencil for GetTexImage";
return angle::Result::Continue;
}
aspectFlags = VK_IMAGE_ASPECT_DEPTH_BIT; aspectFlags = VK_IMAGE_ASPECT_DEPTH_BIT;
} }
if (angleFormat.stencilBits > 0) if (angleFormat.stencilBits > 0)
{ {
ASSERT(angleFormat.depthBits == 0);
aspectFlags = VK_IMAGE_ASPECT_STENCIL_BIT; aspectFlags = VK_IMAGE_ASPECT_STENCIL_BIT;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment