R6xx/r7xx: fix locking for clear
this allows redbook hello to render correctly mostly.
This commit is contained in:
parent
d1bc9a29b9
commit
d10006e67f
|
@ -32,6 +32,7 @@
|
|||
#include "main/mtypes.h"
|
||||
#include "main/enums.h"
|
||||
|
||||
#include "radeon_lock.h"
|
||||
#include "r600_context.h"
|
||||
|
||||
#include "r700_shaderinst.h"
|
||||
|
@ -68,14 +69,12 @@ void r700Clear(GLcontext * ctx, GLbitfield mask)
|
|||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (!context->radeon.radeonScreen->driScreen->dri2.enabled) {
|
||||
LOCK_HARDWARE(&context->radeon);
|
||||
UNLOCK_HARDWARE(&context->radeon);
|
||||
if (dPriv->numClipRects == 0)
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
R600_NEWPRIM(context);
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "tnl/t_vertex.h"
|
||||
#include "tnl/t_pipeline.h"
|
||||
|
||||
#include "radeon_lock.h"
|
||||
#include "r600_context.h"
|
||||
#include "r600_cmdbuf.h"
|
||||
|
||||
|
@ -296,9 +295,6 @@ static GLboolean r700RunRender(GLcontext * ctx,
|
|||
/* flush vtx */
|
||||
//r700SyncSurf(context); /* */
|
||||
|
||||
LOCK_HARDWARE( &context->radeon );
|
||||
UNLOCK_HARDWARE( &context->radeon );
|
||||
|
||||
r700SendContextStates(context);
|
||||
r700SendViewportState(context, 0);
|
||||
r700SendRenderTargetState(context, 0);
|
||||
|
|
Loading…
Reference in New Issue