<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Dec 4, 2016 at 2:08 PM, 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">Otherwise subsequent render cycles keep on using compression<br>
and/or fast clear.<br></blockquote><div><br></div><div>I believe that's because most things look at mt->mcs_buf rather than no_ccs. Given that we're allocating the CCS up-front, is no_ccs really doing anything for us or can we just use mt->mcs_buf? Maybe it's mostly used during miptree setup?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Signed-off-by: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
CC: Kalyan Kondapally <<a href="mailto:kalyan.kondapally@intel.com">kalyan.kondapally@intel.com</a>><br>
CC: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c | 3 +++<br>
1 file changed, 3 insertions(+)<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 a9b350e..7cda019 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>
@@ -2326,6 +2326,9 @@ intel_miptree_make_shareable(<wbr>struct brw_context *brw,<br>
if (mt->mcs_buf) {<br>
intel_miptree_all_slices_<wbr>resolve_color(brw, mt, 0);<br>
mt->no_ccs = true;<br>
+ drm_intel_bo_unreference(mt-><wbr>mcs_buf->bo);<br>
+ free(mt->mcs_buf);<br>
+ mt->mcs_buf = NULL;<br>
}<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<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></div>