Commit 6d69aae0 by Alexis Hetu Committed by Alexis Hétu

Fixed using an offset in Blitter::blitFromBuffer()

The destination offset wasn't taken into account in the computation of the source offset, which is necessary because we compute the source coordinates from the destination coordinates in the generated routine. Bug: angleproject:4037 angleproject:4013 Change-Id: Ib9961cec267653c8d33da1847486943f8a670a49 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/37588 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent f8df30f1
......@@ -1718,7 +1718,10 @@ namespace sw
bufferSlicePitch, // sSliceB
dst->slicePitchBytes(aspect, subresource.mipLevel), // dSliceB
0, 0, 1, 1,
static_cast<float>(-offset.x), // x0
static_cast<float>(-offset.y), // y0
1.0f, // w
1.0f, // h
offset.y, // y0d
static_cast<int>(offset.y + extent.height), // y1d
......
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