summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-07-03 13:17:00 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-07-03 13:17:00 +0000
commita6c72b67f6d48d6fdc7f1cf908f026a7db03c666 (patch)
treea630d08f7dc0a18c6f1c807b2722878829d1b3bd /src/mesa
parent527cd2544fd9f63c645802191077e84f1ff9a2ae (diff)
fix clipping bug on context change (Martijn van Oosterhout)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r128/r128_state.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_state.c b/src/mesa/drivers/dri/r128/r128_state.c
index 3a1d71d215..05ab3890d2 100644
--- a/src/mesa/drivers/dri/r128/r128_state.c
+++ b/src/mesa/drivers/dri/r128/r128_state.c
@@ -1132,6 +1132,15 @@ void r128EmitHwStateLocked( r128ContextPtr rmesa )
R128_UPLOAD_WINDOW |
R128_UPLOAD_CORE) ) {
memcpy( &sarea->context_state, regs, sizeof(sarea->context_state) );
+
+ if( rmesa->dirty & R128_UPLOAD_CONTEXT )
+ {
+ /* One possible side-effect of uploading a new context is the
+ * setting of the R128_GMC_AUX_CLIP_DIS bit, which causes all
+ * auxilliary cliprects to be disabled. So the next command must
+ * upload them again. */
+ rmesa->dirty |= R128_UPLOAD_CLIPRECTS;
+ }
}
if ( (rmesa->dirty & R128_UPLOAD_TEX0) && t0 ) {