diff options
author | Roland Scheidegger <[email protected]> | 2016-08-15 05:22:30 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2016-08-20 04:05:33 +0200 |
commit | b0a647f284b24ca4e0ee1f70c4839d8ec3d1a4e6 (patch) | |
tree | fd4f504644b10b7056e963ff989b044475c39ab7 /src/gallium/drivers/llvmpipe/lp_screen.h | |
parent | a73116ecc60414ade89802150b707b3336d8d50f (diff) |
llvmpipe: fix depth clamping wrt reversed near/far values
This wasn't handled before (the result was that no matter what value got
clamped, it always ended up as the near value in this case) (if clamping
actually happened).
Fix this by using the util helper for that (the math is otherwise "mostly"
the same, mostly because there could actually be differences due to float
rounding, but I don't even know which one would be more correct).
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.h')
0 files changed, 0 insertions, 0 deletions