<p dir="ltr"></p>
<p dir="ltr">On Aug 31, 2016 9:06 AM, "Topi Pohjolainen" <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>> wrote:<br>
><br>
> Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
> ---<br>
> src/intel/blorp/blorp.c | 9 ++++++---<br>
> 1 file changed, 6 insertions(+), 3 deletions(-)<br>
><br>
> diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c<br>
> index 4dbba01..17c1ff4 100644<br>
> --- a/src/intel/blorp/blorp.c<br>
> +++ b/src/intel/blorp/blorp.c<br>
> @@ -119,6 +119,9 @@ brw_blorp_surface_info_init(struct blorp_context *blorp,<br>
> },<br>
> };<br>
><br>
> + info->view.array_len = MAX2(info->surf.logical_level0_px.depth,</p>
<p dir="ltr">You need to minify here which apparently I forgot to do as well. Now, it will matter though.</p>
<p dir="ltr">> + info->surf.logical_level0_px.array_len);<br>
> +<br>
> if (!is_render_target &&<br>
> (info->surf.dim == ISL_SURF_DIM_3D ||<br>
> info->surf.msaa_layout == ISL_MSAA_LAYOUT_ARRAY)) {<br>
> @@ -128,12 +131,12 @@ brw_blorp_surface_info_init(struct blorp_context *blorp,<br>
> * guaranteed that we won't be doing any funny surface hacks.<br>
> */<br>
> info->view.base_array_layer = 0;<br>
> - info->view.array_len = MAX2(info->surf.logical_level0_px.depth,<br>
> - info->surf.logical_level0_px.array_len);<br>
> info->z_offset = layer / layer_multiplier;<br>
> } else {<br>
> info->view.base_array_layer = layer / layer_multiplier;<br>
> - info->view.array_len = 1;<br>
> +<br>
> + assert(info->view.array_len >= info->view.base_array_layer);<br>
> + info->view.array_len -= info->view.base_array_layer;<br>
> info->z_offset = 0;<br>
> }<br>
> }<br>
> --<br>
> 2.5.5<br>
><br>
> _______________________________________________<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">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br></p>