[Mesa-dev] [PATCH 2/4] i965/gen8 renderbuffer: Set depth size based on LOD0 for 3D textures
Jordan Justen
jordan.l.justen at intel.com
Sat May 10 18:30:50 PDT 2014
Fixes piglit's
'gl-3.2-layered-rendering-clear-color-all-types 3d mipmapped'
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Cc: Chris Forbes <chrisf at ijw.co.nz>
---
src/mesa/drivers/dri/i965/gen8_surface_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c
index fd9222d..322ba87 100644
--- a/src/mesa/drivers/dri/i965/gen8_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c
@@ -309,7 +309,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);
--
2.0.0.rc2
More information about the mesa-dev
mailing list