From 294ada2fefb67f2bae272a313af0d40f18f24e20 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 10 May 2014 14:48:47 -0700 Subject: [PATCH] i965/gen8 depth: Set depth size based on LOD0 for 3D textures Signed-off-by: Jordan Justen Reviewed-by: Chris Forbes --- src/mesa/drivers/dri/i965/gen8_depth_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen8_depth_state.c b/src/mesa/drivers/dri/i965/gen8_depth_state.c index 31d6d565f08..0bed3b4948a 100644 --- a/src/mesa/drivers/dri/i965/gen8_depth_state.c +++ b/src/mesa/drivers/dri/i965/gen8_depth_state.c @@ -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); -- 2.30.2