summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-11-28 21:56:24 +0100
committerJakob Bornecrantz <wallbraker@gmail.com>2010-12-02 01:34:14 +0100
commit0246b2bf2799e20ca390777201e5023b897e2b94 (patch)
treedd9b5fffa242e4b82956390bcda457fe453d48ec
parent1a47a25d2cc7789b95e88c1d46b29f98fd728004 (diff)
i915g: assert(depth_surface->offset == 0)
Shouldn't happen and not supported, anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
-rw-r--r--src/gallium/drivers/i915/i915_state_emit.c3
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 7c430dea8bc..49d1fa69a80 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);
}
{