[Mesa-dev] [PATCH 2/2] radeonsi: fix viewport clipping magic.

Dave Airlie airlied at gmail.com
Thu Dec 10 18:11:35 PST 2015


From: Dave Airlie <airlied at redhat.com>

This fixes the CTS ARB_viewport_array tests and the
arb_viewport_array-render-viewport-2 test I sent to the piglit list.

I'm not sure what this register does, or if we should ever not
be setting it, but lets just set it always for now.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/drivers/radeonsi/si_state.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 9f9f3d6..6683909 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -521,7 +521,8 @@ static void si_emit_clip_regs(struct si_context *sctx, struct r600_atom *atom)
 		sctx->queued.named.rasterizer->pa_cl_clip_cntl |
 		(clipdist_mask ? 0 :
 		 sctx->queued.named.rasterizer->clip_plane_enable & SIX_BITS) |
-		S_028810_CLIP_DISABLE(window_space));
+		S_028810_CLIP_DISABLE(window_space) |
+		S_028810_VTE_VPORT_PROVOKE_DISABLE(1));
 }
 
 static void si_set_scissor_states(struct pipe_context *ctx,
-- 
2.5.0



More information about the mesa-dev mailing list