summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915pipe/intel_context.c
diff options
context:
space:
mode:
authorBrian <brian@i915.localnet.net>2007-08-01 15:11:59 -0600
committerBrian <brian@i915.localnet.net>2007-08-01 15:11:59 -0600
commit0c4acfe15a0555a6f3da02ab17e58cc379df11fd (patch)
treec65574cd49cdbc79d1eb8034f5bfe661f5e06eef /src/mesa/drivers/dri/i915pipe/intel_context.c
parent0eb02a1963a25f6994b730147d0613b03424c11e (diff)
Re-implement intelClear() in terms of softpipe_clear(). Pretty simple/small now.
Note: softpipe_clear() should really be renamed to something like pipe_clear_with_blits() and put into a driver-indepedent module...
Diffstat (limited to 'src/mesa/drivers/dri/i915pipe/intel_context.c')
-rw-r--r--src/mesa/drivers/dri/i915pipe/intel_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915pipe/intel_context.c b/src/mesa/drivers/dri/i915pipe/intel_context.c
index 6121f6bc60..be8235d7d1 100644
--- a/src/mesa/drivers/dri/i915pipe/intel_context.c
+++ b/src/mesa/drivers/dri/i915pipe/intel_context.c
@@ -763,6 +763,7 @@ void LOCK_HARDWARE( struct intel_context *intel )
*/
void UNLOCK_HARDWARE( struct intel_context *intel )
{
+ assert(intel->locked);
intel->locked = 0;
DRM_UNLOCK(intel->driFd, intel->driHwLock, intel->hHWContext);