Module: Mesa Branch: master Commit: 0246b2bf2799e20ca390777201e5023b897e2b94 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0246b2bf2799e20ca390777201e5023b897e2b94
Author: Daniel Vetter <[email protected]> Date: Sun Nov 28 21:56:24 2010 +0100 i915g: assert(depth_surface->offset == 0) Shouldn't happen and not supported, anyway. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]> Signed-off-by: Jakob Bornecrantz <[email protected]> --- src/gallium/drivers/i915/i915_state_emit.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c index 7c430de..49d1fa6 100644 --- a/src/gallium/drivers/i915/i915_state_emit.c +++ b/src/gallium/drivers/i915/i915_state_emit.c @@ -256,6 +256,7 @@ i915_emit_hardware_state(struct i915_context *i915 ) if (depth_surface) { struct i915_texture *tex = i915_texture(depth_surface->texture); assert(tex); + assert(depth_surface->offset == 0); OUT_BATCH(_3DSTATE_BUF_INFO_CMD); @@ -266,7 +267,7 @@ i915_emit_hardware_state(struct i915_context *i915 ) OUT_RELOC(tex->buffer, I915_USAGE_RENDER, - depth_surface->offset); + 0); } { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
