OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
008653a
)
i915: check for depth region before accounting its buffer size
author
Dave Airlie
<airlied@redhat.com>
Fri, 18 Apr 2008 02:12:53 +0000
(12:12 +1000)
committer
Dave Airlie
<airlied@panoply-rh.(none)>
Fri, 18 Apr 2008 02:13:13 +0000
(12:13 +1000)
fd.o bz #15573
src/mesa/drivers/dri/i915/i915_vtbl.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/i915_vtbl.c
b/src/mesa/drivers/dri/i915/i915_vtbl.c
index
5cf74d5
..
135bfaa
100644
(file)
--- a/
src/mesa/drivers/dri/i915/i915_vtbl.c
+++ b/
src/mesa/drivers/dri/i915/i915_vtbl.c
@@
-322,7
+322,8
@@
i915_emit_state(struct intel_context *intel)
ret = 0;
if (dirty & I915_UPLOAD_BUFFERS) {
ret |= dri_bufmgr_check_aperture_space(state->draw_region->buffer);
- ret |= dri_bufmgr_check_aperture_space(state->depth_region->buffer);
+ if (state->depth_region)
+ ret |= dri_bufmgr_check_aperture_space(state->depth_region->buffer);
}
if (dirty & I915_UPLOAD_TEX_ALL) {