OSDN Git Service

Fixed R8I and R8UI fragment output formats
authorAlexis Hetu <sugoi@google.com>
Thu, 15 Sep 2016 21:54:05 +0000 (17:54 -0400)
committerAlexis Hétu <sugoi@google.com>
Fri, 16 Sep 2016 12:11:50 +0000 (12:11 +0000)
commit827d07ab03ed7587a009b186fc4363b0b93cdf24
tree09f91f524d4d990105744175a55f2f9952cefe12
parent17b29fd4f21db9966607fc502b075dc6840e223b
Fixed R8I and R8UI fragment output formats

There was a silly mistake in the code that I just found.
Instead of being ordered (1,2,3,4), the 4 pixels being
outputted were ordered (3,4,1,2), which was within the
tolerance threshold for most of the image, but exhibited
weird sparse diagonal lines of errors (values outside of
threshold). Reordered the pixels properly to fix the issue.

Change-Id: I082463d22e585e5ee98836a87ef60efca05e58f0
Reviewed-on: https://swiftshader-review.googlesource.com/7192
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Shader/PixelRoutine.cpp