Commit 1df70f03 by Ian Elliott Committed by Commit Bot

Vulkan: Swap RenderArea coords for pre-rotation

Fixes Vulkan validation-layer errors. Found by dEQP tests that use small viewports and/or scissors (see Buganizer bugs for details). Bug: angleproject:4431 Bug: b/157933235 Bug: b/157933198 Change-Id: I83966906d70c30a4b50209cf1a33649bf69e3dd8 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2225607 Commit-Queue: Ian Elliott <ianelliott@google.com> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
parent ab372311
......@@ -4160,8 +4160,8 @@ angle::Result ContextVk::flushAndBeginRenderPass(
if (isRotatedAspectRatioForDrawFBO())
{
// The surface is rotated 90/270 degrees. This changes the aspect ratio of
// the surface. Swap the width and height of the renderArea.
// TODO(ianelliott): handle small viewport/scissor cases. http://anglebug.com/4431
// the surface. Swap the x and y axis of the renderArea.
std::swap(rotatedRenderArea.x, rotatedRenderArea.y);
std::swap(rotatedRenderArea.width, rotatedRenderArea.height);
}
......
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