<div dir="ltr"><div>6-9 are<br><br></div>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 Mon, Jan 16, 2017 at 1:13 AM, Topi Pohjolainen <span dir="ltr"><<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In intel_hiz_miptree_buf_create() the miptree is unconditionally<br>
created with MIPTREE_LAYOUT_FORCE_ALL_<wbr>SLICE_AT_LOD.<br>
<br>
Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
---<br>
src/mesa/drivers/dri/i965/<wbr>gen6_depth_state.c | 13 ++++++-------<br>
1 file changed, 6 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>gen6_depth_state.c b/src/mesa/drivers/dri/i965/<wbr>gen6_depth_state.c<br>
index 0ff2407..cda66e8 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>gen6_depth_state.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>gen6_depth_state.c<br>
@@ -162,14 +162,13 @@ gen6_emit_depth_stencil_hiz(<wbr>struct brw_context *brw,<br>
if (hiz) {<br>
assert(depth_mt);<br>
struct intel_mipmap_tree *hiz_mt = depth_mt->hiz_buf->mt;<br>
- uint32_t offset = 0;<br>
<br>
- if (hiz_mt->array_layout == ALL_SLICES_AT_EACH_LOD) {<br>
- offset = intel_miptree_get_aligned_<wbr>offset(<br>
- hiz_mt,<br>
- hiz_mt->level[lod].level_x,<br>
- hiz_mt->level[lod].level_y);<br>
- }<br>
+ assert(hiz_mt->array_layout == ALL_SLICES_AT_EACH_LOD);<br>
+<br>
+ const uint32_t offset = intel_miptree_get_aligned_<wbr>offset(<br>
+ hiz_mt,<br>
+ hiz_mt->level[lod].level_x,<br>
+ hiz_mt->level[lod].level_y);<br>
<br>
BEGIN_BATCH(3);<br>
OUT_BATCH((_3DSTATE_HIER_<wbr>DEPTH_BUFFER << 16) | (3 - 2));<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.5<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>