<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 6, 2017 at 2:46 PM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Enable multiple layers of the depth/stencil buffers to be accessible.<br>
<br>
Fixes the crucible test, func.depthstencil.arrayed_<wbr>clear.<br>
<br>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.<wbr>org</a><br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
src/intel/vulkan/genX_cmd_<wbr>buffer.c | 7 +++++--<br>
1 file changed, 5 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/genX_cmd_<wbr>buffer.c b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
index 9c6349a745..0d24aeaed6 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -2122,14 +2122,17 @@ cmd_buffer_emit_depth_stencil(<wbr>struct anv_cmd_buffer *cmd_buffer)<br>
db.Height = image->extent.height - 1;<br>
db.Width = image->extent.width - 1;<br>
db.LOD = iview->isl.base_level;<br>
- db.Depth = image->array_size - 1; /* FIXME: 3-D */<br>
db.MinimumArrayElement = iview->isl.base_array_layer;<br>
<br>
+ assert(image->depth_surface.<wbr>isl.dim != ISL_SURF_DIM_3D);<br>
+ db.Depth =<br>
+ db.RenderTargetViewExtent =<br>
+ iview->isl.array_len - iview->isl.base_array_layer - 1;<br>
+<br>
#if GEN_GEN >= 8<br>
db.SurfaceQPitch =<br>
isl_surf_get_array_pitch_el_<wbr>rows(&image->depth_surface.<wbr>isl) >> 2;<br>
#endif<br>
- db.RenderTargetViewExtent = 1 - 1;<br>
}<br>
} else {<br>
/* Even when no depth buffer is present, the hardware requires that<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.11.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>