summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_state_static.c
diff options
context:
space:
mode:
authorStéphane Marchesin <marcheu@chromium.org>2011-12-15 16:19:46 -0800
committerStéphane Marchesin <marcheu@chromium.org>2011-12-19 18:28:26 -0800
commit1981042341c6942bbd4d61508a47226c789bc25b (patch)
tree51a9746b1cd6c5ab5baab8fbae1dc4cce3ed4d54 /src/gallium/drivers/i915/i915_state_static.c
parenta7534d8943d74e81299b2ee4edc462baac9d1331 (diff)
downloadexternal_mesa3d-1981042341c6942bbd4d61508a47226c789bc25b.zip
external_mesa3d-1981042341c6942bbd4d61508a47226c789bc25b.tar.gz
external_mesa3d-1981042341c6942bbd4d61508a47226c789bc25b.tar.bz2
i915g: Turn an assert into a debug message, print more debug info for missing depth swz.
Also fix indentation a bit.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_static.c')
-rw-r--r--src/gallium/drivers/i915/i915_state_static.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_state_static.c b/src/gallium/drivers/i915/i915_state_static.c
index f41c32e..9370f3d 100644
--- a/src/gallium/drivers/i915/i915_state_static.c
+++ b/src/gallium/drivers/i915/i915_state_static.c
@@ -126,7 +126,8 @@ static void update_framebuffer(struct i915_context *i915)
unsigned offset = i915_texture_offset(tex, depth_surface->u.tex.level,
depth_surface->u.tex.first_layer);
assert(tex);
- assert(offset == 0);
+ if (offset != 0)
+ debug_printf("Depth offset is %d\n",offset);
i915->current.depth_bo = tex->buffer;
i915->current.depth_flags = BUF_3D_ID_DEPTH |