<div dir="ltr">On 5 April 2013 15:28, Chad Versace <span dir="ltr"><<a href="mailto:chad.versace@linux.intel.com" target="_blank">chad.versace@linux.intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When moving the renderbuffer to a new miptree, we neglected to allocate<br>
the hiz buffer for the new miptree. Oops.<br>
<br>
Fixes all Piglit depthstencil-render-miplevels tests from crash to pass on<br>
Sandybridge.<br>
<br>
CC: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
CC: Eric Anholt <<a href="mailto:eric@anholt.net">eric@anholt.net</a>><br>
Signed-off-by: Chad Versace <<a href="mailto:chad.versace@linux.intel.com">chad.versace@linux.intel.com</a>><br></blockquote><div><br></div><div>I haven't had a chance to review this yet, but:<br></div><div><br>
Candidate for the 9.1 stable release branch?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
src/mesa/drivers/dri/intel/intel_fbo.c | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c<br>
index b91d6e0..2977568 100644<br>
--- a/src/mesa/drivers/dri/intel/intel_fbo.c<br>
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c<br>
@@ -1010,6 +1010,10 @@ intel_renderbuffer_move_to_temp(struct intel_context *intel,<br>
irb->mt->num_samples,<br>
false /* force_y_tiling */);<br>
<br>
+ if (intel->vtbl.is_hiz_depth_format(intel, new_mt->format)) {<br>
+ intel_miptree_alloc_hiz(intel, new_mt, irb->mt->num_samples);<br>
+ }<br>
+<br>
intel_miptree_copy_teximage(intel, intel_image, new_mt, invalidate);<br>
<br>
intel_miptree_reference(&irb->mt, intel_image->mt);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.1.4<br>
<br>
</font></span></blockquote></div><br></div></div>