mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
fix clipping bug on context change (Martijn van Oosterhout)
This commit is contained in:
parent
527cd2544f
commit
a6c72b67f6
1 changed files with 9 additions and 0 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue