diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-08-30 20:18:33 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-08-30 20:18:33 +0000 |
commit | ec30116c9f0a1862a6f44ee07a50f9d300ee229b (patch) | |
tree | c287ea951b82ba7a2682174fe9dae34331964033 | |
parent | 5ac3ad7722906cf618883072ca7bd8ebfbf615fd (diff) |
Must lock hardware around call to intelEmitCopyBlit()
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_regions.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_regions.c b/src/mesa/drivers/dri/i915/intel_regions.c index 2cde3df982..8eb055d624 100644 --- a/src/mesa/drivers/dri/i915/intel_regions.c +++ b/src/mesa/drivers/dri/i915/intel_regions.c @@ -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, |