i965/gen8 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>
This commit is contained in:
parent
e6d6ed55ab
commit
294ada2fef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue