OSDN Git Service

Fix clearing of dirty textures.
authorNicolas Capens <capn@google.com>
Fri, 15 Jun 2018 15:41:28 +0000 (11:41 -0400)
committerNicolas Capens <nicolascapens@google.com>
Fri, 15 Jun 2018 17:33:47 +0000 (17:33 +0000)
commit700a1a67d569fd5a4960ec36fce9c35d2b59aca2
treec6521f58e0f988160e030d38ead9e220fdbdba1d
parenta62cf68ca10c0a61ef203bb171f6239d15ead951
Fix clearing of dirty textures.

When clear operations fall back to the slow path (i.e. neither fastClear
nor blitReactor is used), we were copying a rectangle the size of the
destination image. It should only sample within the 1x1 source pixel
instead.

Bug chromium:852641, chromium:851707

Change-Id: I9f247483f6167f92be8308b8470c021f5641b657
Reviewed-on: https://swiftshader-review.googlesource.com/19448
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
src/Renderer/Blitter.cpp
src/Renderer/Surface.cpp
tests/unittests/unittests.cpp