From 84f581c65976d45579e1649848c6922669acdd94 Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Sun, 19 Nov 2023 11:06:42 +0100 Subject: [PATCH] llvmpipe: Implement pipe_rasterizer_state::offset_units_unscaled Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/drivers/llvmpipe/lp_state_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c index 24d0da2f229..d34c3f21692 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c @@ -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 =