diff options
author | Jordan Justen <[email protected]> | 2014-05-10 14:48:47 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2014-05-13 14:25:58 -0700 |
commit | e47d08adef06a3ccb57a6672c878b4e5fbdf5c0b (patch) | |
tree | 9c1e9ef80d7f86eaffa7102c1bd604f82933dedb /src/mesa | |
parent | b875f39e2967fa383e2c896bc354429fe10cd7a5 (diff) |
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 <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_surface_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_surface_state.c b/src/mesa/drivers/dri/i965/gen8_surface_state.c index 27a1ff090cc..d564449a7cf 100644 --- a/src/mesa/drivers/dri/i965/gen8_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen8_surface_state.c @@ -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); |