aboutsummaryrefslogtreecommitdiffstats
path: root/include/GLES2
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-01-10 11:47:22 +0100
committerNicolai Hähnle <[email protected]>2017-01-13 00:38:59 +0100
commit205ad5234af5a3a5dd6f584b0814cd5a9ce7f10c (patch)
treea92fed4c34c9366a74955cde9892fba165925ffb /include/GLES2
parente01deee42f1a7b939be15e96f9a037145d570c62 (diff)
radeonsi: restrict cube map derivative computations to the correct plane
As remarked by the comment in the original code, the old algorithm fails when (tc + deriv) points at a different cube face. Instead, simply project the derivative directly to the plane of the selected cube face. The new code is based on exactly differentiating (using the chain rule) the projection onto a plane corresponding to a fixed cube map face (which is still selected in the usual way based on the texture coordinate itself). The computations end up fairly involved, but we do save two reciprocal computations. Fixes GL45-CTS.texture_cube_map_array.sampling. v2: add 0.5 offset to tex coords only after derivative calculation v3: go back to 1.5 offset Reviewed-by: Bas Nieuwenhuizen <[email protected]> (v2) Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'include/GLES2')
0 files changed, 0 insertions, 0 deletions