Commit 887bc44f by Nicolas Capens

Skip half-pixel shift on pre-transformed coordinates.

Bug 22624951 Change-Id: Ibda5f528212c9a8d503d8d6366cd7a42cd832c89 Reviewed-on: https://swiftshader-review.googlesource.com/3742Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 35227c81
......@@ -476,7 +476,7 @@ namespace sw
r.o[pos].w = rhw;
}
if(!halfIntegerCoordinates)
if(!halfIntegerCoordinates && !state.preTransformed)
{
r.o[pos].x = r.o[pos].x + *Pointer<Float4>(r.data + OFFSET(DrawData,halfPixelX)) * r.o[pos].w;
r.o[pos].y = r.o[pos].y + *Pointer<Float4>(r.data + OFFSET(DrawData,halfPixelY)) * r.o[pos].w;
......
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