mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 04:30:25 +01:00
i965/gen8 renderbuffer: Set depth size based on LOD0 for 3D textures
Fixes piglit's 'gl-3.2-layered-rendering-clear-color-all-types 3d mipmapped' Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
parent
b875f39e29
commit
e47d08adef
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw,
|
|||
depth *= 6;
|
||||
break;
|
||||
case GL_TEXTURE_3D:
|
||||
depth = MAX2(rb->Depth, 1);
|
||||
depth = MAX2(irb->mt->logical_depth0, 1);
|
||||
/* fallthrough */
|
||||
default:
|
||||
surf_type = translate_tex_target(gl_target);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue