projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b40dc7e
)
i915: Fix assertion failure on remapping a non-BO-backed VBO.
author
Eric Anholt
<eric@anholt.net>
Tue, 30 Jun 2009 01:48:27 +0000
(18:48 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 30 Jun 2009 17:41:18 +0000
(10:41 -0700)
Failure to set the obj->Pointer back to null tripped up the assertion.
Bug #22428.
src/mesa/drivers/dri/intel/intel_buffer_objects.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_buffer_objects.c
b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index aed0e45a28f35508c79b3814ecaed9164d923d7b..9408b0c351fc46ceaaaf51b422eef044fda0a443 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_buffer_objects.c
+++ b/
src/mesa/drivers/dri/intel/intel_buffer_objects.c
@@
-274,7
+274,10
@@
intel_bufferobj_unmap(GLcontext * ctx,
struct intel_buffer_object *intel_obj = intel_buffer_object(obj);
assert(intel_obj);
- if (intel_obj->buffer != NULL) {
+ if (intel_obj->sys_buffer != NULL) {
+ assert(obj->Pointer);
+ obj->Pointer = NULL;
+ } else if (intel_obj->buffer != NULL) {
assert(obj->Pointer);
if (intel_obj->mapped_gtt) {
drm_intel_gem_bo_unmap_gtt(intel_obj->buffer);