d3d1x: propagate DepthBiasClamp to rasterizer cso
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 24 Sep 2011 11:27:08 +0000 (13:27 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 28 Sep 2011 14:28:58 +0000 (16:28 +0200)
src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h

index 4405d33ea8a0e867b86bd7e701ae3ecbe7bacc95..9d8bbd895370e455d878ba3d44965f367c494974 100644 (file)
@@ -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;