i915g: assert(depth_surface->offset == 0)
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 28 Nov 2010 20:56:24 +0000 (21:56 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 2 Dec 2010 00:34:14 +0000 (01:34 +0100)
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>
src/gallium/drivers/i915/i915_state_emit.c

index 7c430dea8bcda8a2a682f5b96c333dab1203f63a..49d1fa69a80f579664c454d5a52600c6798d0935 100644 (file)
@@ -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);
       }
 
       {