Must lock hardware around call to intelEmitCopyBlit()

This commit is contained in:
Keith Whitwell 2006-08-30 20:18:33 +00:00
parent 5ac3ad7722
commit ec30116c9f

View file

@ -372,7 +372,9 @@ void intel_region_cow( struct intel_context *intel,
/* Now blit from the texture buffer to the new buffer:
*/
/* LOCKING??? */
intel_batchbuffer_flush( intel->batch );
LOCK_HARDWARE(intel);
intelEmitCopyBlit( intel,
region->cpp,
region->pitch,
@ -383,6 +385,9 @@ void intel_region_cow( struct intel_context *intel,
0,0,
region->pitch,
region->height );
intel_batchbuffer_flush( intel->batch );
UNLOCK_HARDWARE(intel);
}
struct buffer *intel_region_buffer( struct intel_context *intel,