mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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:
parent
803521f416
commit
84f581c659
1 changed files with 2 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue