mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-15 15:38:22 +02:00
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 <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26282>
This commit is contained in:
parent
ebd2fc1441
commit
803521f416
1 changed files with 6 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue