commit | 34cab51bf94edbb6b96e9d0edba678fcf711cd77 | [log] [tgz] |
---|---|---|
author | Alexis Hetu <sugoi@google.com> | Thu Nov 19 11:44:25 2015 -0500 |
committer | Alexis Hétu <sugoi@google.com> | Fri Nov 20 12:42:35 2015 +0000 |
tree | a6ab5d423b745263c426e08cf6fc883b166020da | |
parent | 1edcd8b626129ac8297cda0a297034d8dfeb5061 [diff] |
Blitter fix Conversion from a float format to a non float format was broken in the blitter because the clamp operation, either to the [0,1] range or the [-1,1] range, was happening after the scaling operation, so non float types were becoming either -1, 0 or 1, which was wrong. Change-Id: I3e1290313043fc49030454916b6e4ea6666f8343 Reviewed-on: https://swiftshader-review.googlesource.com/4290 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>