From 803521f416cd5e49feb915dfd919c45e7fb039ae Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Fri, 27 Jun 2025 15:41:27 +0200 Subject: [PATCH] gallium: Add back pipe_rasterizer_state::offset_units_unscaled The field was removed with the nine removal but it is needed for depth bias control on Vulkan. Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/include/pipe/p_state.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 156b1f84ad3..ec329738e4c 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -180,6 +180,12 @@ struct pipe_rasterizer_state */ unsigned clip_halfz:1; + /** + * When true do not scale offset_units and use same rules for unorm and + * float depth buffers. + */ + unsigned offset_units_unscaled:1; + /** * Depth values output from fragment shader may be outside 0..1. * These have to be clamped for use with UNORM buffers.