i965/gen8 depth: Set depth size based on LOD0 for 3D textures
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 10 May 2014 21:48:47 +0000 (14:48 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 13 May 2014 21:25:58 +0000 (14:25 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/gen8_depth_state.c

index 31d6d565f08a515ad61596a737964d271c1fc784..0bed3b4948a01f4e0e00b9adb077384fc51f36b2 100644 (file)
@@ -185,8 +185,8 @@ gen8_emit_depth_stencil_hiz(struct brw_context *brw,
       depth *= 6;
       break;
    case GL_TEXTURE_3D:
-      assert(rb);
-      depth = MAX2(rb->Depth, 1);
+      assert(mt);
+      depth = MAX2(mt->logical_depth0, 1);
       /* fallthrough */
    default:
       surftype = translate_tex_target(gl_target);