i915: check for depth region before accounting its buffer size

fd.o bz #15573
This commit is contained in:
Dave Airlie 2008-04-18 12:12:53 +10:00 committed by Dave Airlie
parent 008653ac55
commit f2a6404ef3
1 changed files with 2 additions and 1 deletions

View File

@ -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) {