diff options
author | Roland Scheidegger <[email protected]> | 2017-09-09 02:58:21 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2017-09-09 03:06:10 +0200 |
commit | dcf2feadc336a1d81bf1b03d0b9c6dd68ea61441 (patch) | |
tree | 59bece628754e812638ba754c1d2cb5836570980 /appveyor.yml | |
parent | 30682fba77ffe8e3c6b50f8dfa3633d0cd90cbc3 (diff) |
gallivm: fix gather implementation a bit
gather is defined in terms of bilinear filtering, just without the filtering
part. However, there's actually some subtle differences required in our
implementation, because we use some tricks to simplify coord wrapping for the
two coords per direction.
For bilinear filtering, we don't care if we end up with an incorrect
texel, as long as the filter weight is 0.0 for it. Likewise, the order of
the texels doesn't actually matter (as long as they still have the correct
filter weight).
But for gather, these tricks lead to incorrect results.
Fix this for CLAMP_TO_EDGE, and add some comments to the other wrap functions
which look broken (the 3 mirror_clamp plus mirror_repeat) (too complex to fix
right now, and noone really seems to care...).
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'appveyor.yml')
0 files changed, 0 insertions, 0 deletions