mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
radeon: Adapt cliprect fixes from r300.
This commit is contained in:
parent
61ec23cc63
commit
88501887e4
3 changed files with 9 additions and 6 deletions
|
|
@ -594,12 +594,14 @@ radeonMakeCurrent( __DRIcontextPrivate *driContextPriv,
|
|||
driDrawableInitVBlank( driDrawPriv, newCtx->vblank_flags,
|
||||
&newCtx->vbl_seq );
|
||||
}
|
||||
|
||||
if ( (newCtx->dri.drawable != driDrawPriv)
|
||||
|| (newCtx->dri.readable != driReadPriv) ) {
|
||||
newCtx->dri.drawable = driDrawPriv;
|
||||
newCtx->dri.readable = driReadPriv;
|
||||
|
||||
newCtx->dri.readable = driReadPriv;
|
||||
|
||||
if ( (newCtx->dri.drawable != driDrawPriv) ||
|
||||
newCtx->lastStamp != driDrawPriv->lastStamp ) {
|
||||
newCtx->dri.drawable = driDrawPriv;
|
||||
|
||||
radeonSetCliprects(newCtx);
|
||||
radeonUpdateWindow( newCtx->glCtx );
|
||||
radeonUpdateViewportOffset( newCtx->glCtx );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ void radeonGetLock( radeonContextPtr rmesa, GLuint flags )
|
|||
radeonSetCliprects( rmesa );
|
||||
radeonUpdateViewportOffset( rmesa->glCtx );
|
||||
driUpdateFramebufferSize(rmesa->glCtx, drawable);
|
||||
rmesa->lastStamp = drawable->lastStamp;
|
||||
}
|
||||
|
||||
RADEON_STATECHANGE( rmesa, ctx );
|
||||
|
|
|
|||
|
|
@ -1675,6 +1675,8 @@ void radeonSetCliprects( radeonContextPtr rmesa )
|
|||
|
||||
if (rmesa->state.scissor.enabled)
|
||||
radeonRecalcScissorRects( rmesa );
|
||||
|
||||
rmesa->lastStamp = drawable->lastStamp;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue