mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
Fixup previous commit.
radeonScheduleSwap() already takes the lock in the SwapBuffers case, only the CopySubBuffer case was missing it.
This commit is contained in:
parent
9c591c52c7
commit
aa85973f95
1 changed files with 2 additions and 3 deletions
|
|
@ -420,7 +420,6 @@ void radeonCopyBuffer( __DRIdrawablePrivate *dPriv,
|
|||
fprintf( stderr, "\n%s( %p )\n\n", __FUNCTION__, (void *) rmesa->glCtx );
|
||||
}
|
||||
|
||||
LOCK_HARDWARE( rmesa );
|
||||
nbox = dPriv->numClipRects; /* must be in locked region */
|
||||
|
||||
for ( i = 0 ; i < nbox ; ) {
|
||||
|
|
@ -510,8 +509,6 @@ static GLboolean radeonPageFlip( __DRIdrawablePrivate *dPriv )
|
|||
|
||||
psp = dPriv->driScreenPriv;
|
||||
|
||||
LOCK_HARDWARE( radeon );
|
||||
|
||||
if ( RADEON_DEBUG & DEBUG_IOCTL ) {
|
||||
fprintf(stderr, "%s: pfCurrentPage: %d %d\n", __FUNCTION__,
|
||||
radeon->sarea->pfCurrentPage, radeon->sarea->pfState);
|
||||
|
|
@ -605,6 +602,8 @@ void radeonCopySubBuffer(__DRIdrawablePrivate * dPriv,
|
|||
rect.x2 = rect.x1 + w;
|
||||
rect.y2 = rect.y1 + h;
|
||||
_mesa_notifySwapBuffers(ctx); /* flush pending rendering comands */
|
||||
LOCK_HARDWARE( (radeonContextPtr)
|
||||
dPriv->driContextPriv->driverPrivate );
|
||||
radeonCopyBuffer(dPriv, &rect);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue