<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 27, 2018 at 4:14 AM, Nicolai Hähnle <span dir="ltr"><<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry, but I still don't understand the logic of this :/<br>
<br>
What we want to check for is that all the DCC bytes of a mip-level are contiguous, right?<br>
<br>
Why does it matter for that whether a level is the last level?<br>
<br>
Here's the thought experiment that I can't make sense of: Let's say that you have format, base level, and number of levels N so that the last-level condition applies. That is, all levels up to and including N-2 have dccRamAligned true. Level N-1 has dccRamAligned false, but the patch as-is will still consider it fast-clearable.<br></blockquote><div><br></div><div>Yes, because the non-contiguous level N-1 DCC range (last level) doesn't overlap with any existing level. It's interleaved with level N that doesn't exist. So clearing the level N-1 DCC range that might overwrite level N DCC range doesn't break anything and so the clear is allowed.</div><div><br></div><div>Is it clear now?<br></div><div><br></div><div>Marek<br></div></div><br></div></div>