summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2015-09-23 01:50:31 +0300
committerDave Airlie <airlied@redhat.com>2015-09-23 09:09:04 +1000
commit8ae8feca844c953510e94f116be2fc37fb14ffe0 (patch)
treed30b591521af41283d47ea623424325884b9c3a6 /src/gallium
parent1bd89db921105dbe76047144b4719d4617aee1d8 (diff)
downloadexternal_mesa3d-8ae8feca844c953510e94f116be2fc37fb14ffe0.zip
external_mesa3d-8ae8feca844c953510e94f116be2fc37fb14ffe0.tar.gz
external_mesa3d-8ae8feca844c953510e94f116be2fc37fb14ffe0.tar.bz2
r600g: update num_dw in scissor_enable workaround
"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@trippelsdorf.de> Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/r600_state_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index 21c89dc..efce852 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -367,6 +367,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);
}