summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/tri-gs.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2018-08-16 16:29:31 +0200
committerAxel Davy <[email protected]>2018-09-25 22:05:24 +0200
commita9bf82ecf4c284989c40e4e6c1f6962bc9bd58d2 (patch)
tree895f130102eca8aba74c566ac15d6a10ed760297 /src/gallium/tests/graw/tri-gs.c
parent7ee5e5e239a5528c6eed2d1bb47b48434de74a6e (diff)
st/nine: Use perspective correction for ps depth fog
Emulate perspective interpolation of depth for programmable ps fog ff ps fog uses position z, or 1/w depending on the ff projection matrix set. This is according to public documents found describing the algorithm and tests we made. In the case of programmable ps, we used position's z, which was sufficient to pass wine tests (which test shaders don't set w). Issue https://github.com/iXit/Mesa-3D/issues/315 showed that this calculation was wrong. Using perspective interpolation on z, that is using z * 1/w seems to satisfy both this application and wine tests. Fixes: https://github.com/iXit/Mesa-3D/issues/315 Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/tests/graw/tri-gs.c')
0 files changed, 0 insertions, 0 deletions