summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-08-21 21:59:23 -0400
committerMarek Olšák <[email protected]>2018-09-06 21:53:00 -0400
commitdaa19363def83c025ccf16106b3402268bf1f56f (patch)
tree94fd791ebf78e36f29ddf8c8cd665a3731688d6e /src/gallium/state_trackers/nine
parent7b26741806c521279a1b83f2eae40a277d806626 (diff)
gallium: split depth_clip into depth_clip_near & depth_clip_far
for AMD_depth_clamp_separate.
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r--src/gallium/state_trackers/nine/nine_pipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/nine_pipe.c b/src/gallium/state_trackers/nine/nine_pipe.c
index a28b4c6d57a..a84a17f551f 100644
--- a/src/gallium/state_trackers/nine/nine_pipe.c
+++ b/src/gallium/state_trackers/nine/nine_pipe.c
@@ -105,7 +105,8 @@ nine_convert_rasterizer_state(struct NineDevice9 *device,
/* rast.lower_left_origin = 0; */
/* rast.bottom_edge_rule = 0; */
/* rast.rasterizer_discard = 0; */
- rast.depth_clip = 1;
+ rast.depth_clip_near = 1;
+ rast.depth_clip_far = 1;
rast.clip_halfz = 1;
rast.clip_plane_enable = rs[D3DRS_CLIPPLANEENABLE];
/* rast.line_stipple_factor = 0; */