diff options
author | Jordan Justen <[email protected]> | 2014-05-10 14:48:47 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2014-05-13 14:25:57 -0700 |
commit | b875f39e2967fa383e2c896bc354429fe10cd7a5 (patch) | |
tree | f4fe6dd787006efa00124327179d14e58d63e2ac | |
parent | 521ee86db7cb58dbd592107a1b37388d95b8c61c (diff) |
i965/gen7 renderbuffer: Set depth size based on LOD0 for 3D textures
If blorp is disabled for color clears, then piglit's
'gl-3.2-layered-rendering-clear-color-all-types 3d mipmapped'
will fail.
Currently, gen8 fails similarly on this test because gen8
does not use blorp.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c index 5e3d23ea543..b31f491ae65 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c @@ -489,7 +489,7 @@ gen7_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: surftype = translate_tex_target(gl_target); |