diff --git a/docs/gallium/cso/rasterizer.rst b/docs/gallium/cso/rasterizer.rst index 11d886436aa..dfaea1fc1d9 100644 --- a/docs/gallium/cso/rasterizer.rst +++ b/docs/gallium/cso/rasterizer.rst @@ -120,12 +120,6 @@ offset_tri offset_units Specifies the polygon offset bias -offset_units_unscaled - Specifies the unit of the polygon offset bias. If false, use the - GL/D3D1X behavior. If true, offset_units is a floating point offset - which isn't scaled (D3D9). Note that GL/D3D1X behavior has different - formula whether the depth buffer is unorm or float, which is not - the case for D3D9. offset_scale Specifies the polygon offset scale offset_clamp diff --git a/docs/gallium/screen.rst b/docs/gallium/screen.rst index 142e41a4e1d..79d24d4de47 100644 --- a/docs/gallium/screen.rst +++ b/docs/gallium/screen.rst @@ -377,8 +377,6 @@ Capability about the features and limits of the driver/GPU. shaders. * ``pipe_caps.max_window_rectangles``: The maximum number of window rectangles supported in ``set_window_rectangles``. -* ``pipe_caps.polygon_offset_units_unscaled``: If true, the driver implements support - for ``pipe_rasterizer_state::offset_units_unscaled``. * ``pipe_caps.viewport_subpixel_bits``: Number of bits of subpixel precision for floating point viewport bounds. * ``pipe_caps.rasterizer_subpixel_bits``: Number of bits of subpixel precision used diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c index 45043604b9a..e1f6611bbd0 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c @@ -227,7 +227,6 @@ nv30_init_screen_caps(struct nv30_screen *screen) caps->cull_distance = false; caps->shader_group_vote = false; caps->max_window_rectangles = 0; - caps->polygon_offset_units_unscaled = false; caps->viewport_subpixel_bits = 0; caps->mixed_color_depth_bits = 0; caps->shader_array_components = false; diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 0f1133bba47..0cc7fbf1afc 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -896,7 +896,6 @@ struct pipe_caps { bool robust_buffer_access_behavior; bool cull_distance; bool shader_group_vote; - bool polygon_offset_units_unscaled; bool shader_array_components; bool stream_output_interleave_buffers; bool native_fence_fd; diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 18cbcd4e6fa..8817ee952b1 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -180,13 +180,6 @@ 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 (D3D9). When false use GL/D3D1X behaviour. - * This depends on pipe_caps.polygon_offset_units_unscaled. - */ - 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.