From: Jordan Justen Date: Sat, 10 May 2014 21:48:47 +0000 (-0700) Subject: i965/gen7 depth: Set depth size based on LOD0 for 3D textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6d6ed55ab92f657dec49b3e1d939a34a1225919;p=mesa.git i965/gen7 depth: Set depth size based on LOD0 for 3D textures Signed-off-by: Jordan Justen Reviewed-by: Chris Forbes --- diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index d8efa7690ce..22911bf5423 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c @@ -82,8 +82,8 @@ gen7_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);