diff options
author | Roland Scheidegger <[email protected]> | 2013-10-05 03:26:47 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-10-10 04:32:57 +0200 |
commit | 47d0613eb70b2cb5d8837fe8e12325532a7918f5 (patch) | |
tree | 5803f126ffac15c199ef24f232d7fa93c1ae35f9 /src/glsl | |
parent | ce1d8634aa29810e3ec8db70b7f33a5d3f3ade25 (diff) |
gallivm: handle explicit derivatives for cubemaps
They need some special handling. Quite complicated.
Additionally, use the same code for implicit derivatives too if no_rho_approx
and no_quad_lod is set, because it seems while generally it should be ok
to use per quad lod for implicit derivatives there's at least some test which
insists that in case of cubemaps the shared lod value MUST come from a pixel
inside the primitive (due to the derivatives becoming different if a different
larger major axis is chosen).
v2: based on Brian's feedback, clean up code a bit.
And use sign bit of major axis instead of pre-select s/t/r sign for coord
mirroring (which should be the same in the end, saves 2 ands).
Also fix two bugs with select/mirror of derivatives, the minor axes need to
use major axis sign as well (instead of major derivative axis sign), and
don't mistakenly use absolute values of major derivative and inverse major
values.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/glsl')
0 files changed, 0 insertions, 0 deletions