From e866bd1adea2c3b4971ad68e69c644752f2ab7b6 Mon Sep 17 00:00:00 2001 From: Stefan Dösinger Date: Mon, 3 Dec 2012 17:40:52 +0100 Subject: r300g: Give CLIP_DISABLE another try MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Olšák --- src/gallium/drivers/r300/r300_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/r300/r300_state.c') diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 02a263eabda..fba2d35b8f9 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1197,7 +1197,8 @@ static void* r300_create_rs_state(struct pipe_context* pipe, if (r300_screen(pipe->screen)->caps.has_tcl) { vap_clip_cntl = (state->clip_plane_enable & 63) | - R300_PS_UCP_MODE_CLIP_AS_TRIFAN; + R300_PS_UCP_MODE_CLIP_AS_TRIFAN | + (state->depth_clip ? 0 : R300_CLIP_DISABLE); } else { vap_clip_cntl = R300_CLIP_DISABLE; } -- cgit v1.2.3