summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-05-10 14:48:47 -0700
committerJordan Justen <jordan.l.justen@intel.com>2014-05-13 14:25:58 -0700
commite6d6ed55ab92f657dec49b3e1d939a34a1225919 (patch)
treeb71a33a8be92f93deb51f8a062eb6778e1fb4e92 /src
parente47d08adef06a3ccb57a6672c878b4e5fbdf5c0b (diff)
i965/gen7 depth: Set depth size based on LOD0 for 3D textures
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_misc_state.c4
1 files changed, 2 insertions, 2 deletions
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);