OSDN Git Service

Perform coordinate clamping on border addressing mode.
authorNicolas Capens <capn@google.com>
Tue, 28 Nov 2017 20:52:52 +0000 (15:52 -0500)
committerNicolas Capens <nicolascapens@google.com>
Fri, 1 Dec 2017 15:34:13 +0000 (15:34 +0000)
commitc4b1bfa9740df585c32b33831fe8ea78c59491f2
tree01e98ddb519cf29ded07cd74c6fabe13eea8afc6
parent73e18c1b726b4b510e703715772f72450d9f8477
Perform coordinate clamping on border addressing mode.

The border addressing mode should ideally blend with the border color
when using linear filtering. Until we have a border of pixels around
2D textures, we should probably avoid bleeding pixels from the opposite
edge and just clamp the coordinates.

Change-Id: I7afbb629998732b62413e00ba7bcd55340c7b9bb
Reviewed-on: https://swiftshader-review.googlesource.com/14289
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/Shader/SamplerCore.cpp