Skip to content

draw/llvmpipe: correct exponent calculation for negative z

Erik Faye-Lund requested to merge kusma/mesa:lp-polygon-offset-neg-z into main

If the z components here contain negative values, we'll end up with the wrong maximum value.

This updated equation is taken from the D3D11 functional spec (section 15.10 Depth Bias), which is a bit more clear than the OpenGL spec.

Edited by Erik Faye-Lund

Merge request reports