OSDN Git Service

Fixed erroneous filtering
authorAlexis Hetu <sugoi@google.com>
Thu, 21 Mar 2019 22:04:29 +0000 (18:04 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 25 Mar 2019 13:42:37 +0000 (13:42 +0000)
commite24bc66dcda3cd90802093acff02562c3840d6ef
tree6b4ca49dba4aa33350d75aa5fbe25aaf0be0a1b8
parent62f62a6efa2cf7df85d42cb3e0d1b93091be81a0
Fixed erroneous filtering

Even if all the coordinates are within the bounds, if filtering is
enabled and the coordinates are closer to the edge than the center
of the pixel, we have to enable clamping to the edge so that the
samples used for filtering don't get invalid/negative factors.

Bug b/119620767 b/129258757

Change-Id: I0ba50fff2c2873e4a852e34878883c2e707d9886
Tests: dEQP-VK.api.copy_and_blit.core.blit_image.simple_tests.scaling_whole2.*
Tests: dEQP-VK.api.copy_and_blit.dedicated_allocation.blit_image.simple_tests.scaling_whole2.*
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27808
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Device/Blitter.cpp