summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hellström <thomas@tungstengraphics.com>2006-09-26 09:25:47 +0000
committerThomas Hellström <thomas@tungstengraphics.com>2006-09-26 09:25:47 +0000
commit6f9dc91045617d594ce32ae11974bad7e6d149e3 (patch)
tree92b54171e61cabd14a09f0902809e2b0a185a6c1 /src
parentd17637d47f7536eb46c1e0cf246120d36895642f (diff)
Small COW break on destruction optimization.
Fix a comment.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/intel_context.c3
-rw-r--r--src/mesa/drivers/dri/i915/intel_regions.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c
index 577b22694b..252c0d6f42 100644
--- a/src/mesa/drivers/dri/i915/intel_context.c
+++ b/src/mesa/drivers/dri/i915/intel_context.c
@@ -260,8 +260,7 @@ intelFlush(GLcontext * ctx)
if (intel->batch->map != intel->batch->ptr)
intel_batchbuffer_flush(intel->batch);
- /* XXX: Need to do an MI_FLUSH here. Actually, the bufmgr_fake.c
- * code will have done one already.
+ /* XXX: Need to do an MI_FLUSH here.
*/
}
diff --git a/src/mesa/drivers/dri/i915/intel_regions.c b/src/mesa/drivers/dri/i915/intel_regions.c
index 9c33152d98..7176ef137a 100644
--- a/src/mesa/drivers/dri/i915/intel_regions.c
+++ b/src/mesa/drivers/dri/i915/intel_regions.c
@@ -127,10 +127,9 @@ intel_region_release(intelScreenPrivate *intelScreen,
assert((*region)->map_refcount == 0);
if ((*region)->pbo)
- intel_region_release_pbo(intelScreen, *region);
-
- driDeleteBuffers(1, &(*region)->buffer);
-
+ (*region)->pbo->region = NULL;
+ (*region)->pbo = NULL;
+ driBOUnReference((*region)->buffer);
free(*region);
}
*region = NULL;