[Mesa-dev] [PATCH 01/32] i965/surface_state: Use the minified depth for number of image layers
Jason Ekstrand
jason at jlekstrand.net
Wed Jul 19 21:01:27 UTC 2017
Otherwise, if the image is 3D, then we may end up with a number of
layers that is too high for LOD > 0.
---
src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 67dc9d8..e878613 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -1662,7 +1662,7 @@ update_image_surface(struct brw_context *brw,
struct intel_mipmap_tree *mt = intel_obj->mt;
const unsigned num_layers = (!u->Layered ? 1 :
obj->Target == GL_TEXTURE_CUBE_MAP ? 6 :
- mt->logical_depth0);
+ mt->level[u->Level].depth);
struct isl_view view = {
.format = format,
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list