diff options
author | Christoph Bumiller <[email protected]> | 2011-09-24 13:27:08 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-09-28 16:28:58 +0200 |
commit | ddb5cd0a7b7d55595c47f25645b80796dc8cdf7a (patch) | |
tree | ff009a08fe658c9017800ad1b44d1d3786daef6f /src/gallium | |
parent | 5def3b7be142cfc6bbb1534bd0557c5f324de8c0 (diff) |
d3d1x: propagate DepthBiasClamp to rasterizer cso
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index 4405d33ea8a..9d8bbd89537 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -504,11 +504,10 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen else state.cull_face = PIPE_FACE_NONE; state.front_ccw = !!rasterizer_desc->FrontCounterClockwise; - /* TODO: is this correct? */ - /* TODO: we are ignoring depthBiasClamp! */ state.offset_tri = state.offset_line = state.offset_point = rasterizer_desc->SlopeScaledDepthBias || rasterizer_desc->DepthBias; state.offset_scale = rasterizer_desc->SlopeScaledDepthBias; state.offset_units = rasterizer_desc->DepthBias; + state.offset_clamp = rasterizer_desc->DepthBiasClamp; state.scissor = !!rasterizer_desc->ScissorEnable; state.multisample = !!rasterizer_desc->MultisampleEnable; state.line_smooth = !!rasterizer_desc->AntialiasedLineEnable; |