llvmpipe: Implement pipe_rasterizer_state::offset_units_unscaled

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26282>
This commit is contained in:
Konstantin Seurer 2023-11-19 11:06:42 +01:00 committed by Marge Bot
parent 803521f416
commit 84f581c659

View file

@ -795,9 +795,9 @@ lp_make_setup_variant_key(const struct llvmpipe_context *lp,
* to the primitive's maximum Z value. Retain the original depth bias
* value until that stage.
*/
key->floating_point_depth = lp->floating_point_depth;
key->floating_point_depth = lp->floating_point_depth && !lp->rasterizer->offset_units_unscaled;
if (key->floating_point_depth) {
if (lp->floating_point_depth || lp->rasterizer->offset_units_unscaled) {
key->pgon_offset_units = (float) lp->rasterizer->offset_units;
} else {
key->pgon_offset_units =