<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 Wed, Nov 16, 2016 at 6:42 PM, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Found by the piglit 'fbo-depth-array stencil-clear' test when<br>
implementing blorp blit splitting for gen7.<br>
<br>
Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
Cc: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
Reviewed-by: Ben Widawsky <<a href="mailto:ben@bwidawsk.net">ben@bwidawsk.net</a>><br>
---<br>
 src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c | 6 ++++--<br>
 1 file changed, 4 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c<br>
index 28001b6..e7f71c0 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c<br>
@@ -2373,9 +2373,11 @@ intel_update_r8stencil(struct brw_context *brw,<br>
                                  dst, level, layers_per_blit * layer,<br>
                                  MESA_FORMAT_R_UNORM8,<br>
                                  0, 0,<br>
-                                 src->logical_width0, src->logical_height0,<br>
+                                 minify(src->logical_width0, level),<br>
+                                 minify(src->logical_height0, level),<br>
                                  0, 0,<br>
-                                 dst->logical_width0, dst->logical_height0,<br>
+                                 minify(dst->logical_width0, level),<br>
+                                 minify(dst->logical_height0, level),<br>
                                  GL_NEAREST, false, false /*mirror x, y*/,<br>
                                  false, false /* decode/encode srgb */);<br>
       }<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.10.2<br>
<br>
</font></span></blockquote></div><br></div>