[Mesa-dev] [PATCH] r600g: update num_dw in scissor_enable workaround

Grazvydas Ignotas notasas at gmail.com
Wed Sep 9 09:33:02 PDT 2015


"r600g: apply disable workaround on all scissors" forgot to update
num_dw, fix it.

Fixes: fbb423b433 "r600g: apply disable workaround on all scissors"
Reported-and-tested-by: Markus Trippelsdorf <markus at trippelsdorf.de>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91921
---
 src/gallium/drivers/r600/r600_state_common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index ae13411..cd70889 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -374,6 +374,7 @@ static void r600_bind_rs_state(struct pipe_context *ctx, void *state)
 	    rs->scissor_enable != rctx->scissor.enable) {
 		rctx->scissor.enable = rs->scissor_enable;
 		rctx->scissor.dirty_mask = (1 << R600_MAX_VIEWPORTS) - 1;
+		rctx->scissor.atom.num_dw = R600_MAX_VIEWPORTS * 4;
 		r600_mark_atom_dirty(rctx, &rctx->scissor.atom);
 	}
 
-- 
1.9.1



More information about the mesa-dev mailing list