<div dir="auto"><div>I thought the same thing initially, but then realized that's not how modifiers were designed to work.</div><div dir="auto"><br></div><div dir="auto">Mesa should expose all modifiers it wants to allow for 3D and it doesn't care which ones are displayable.</div><div dir="auto"><br></div><div dir="auto">The kernel should expose all modifiers it wants to allow for display.</div><div dir="auto"><br></div><div dir="auto">With that, Mesa can still use theoretically displayable DCC, but it will only be used for anything that's not the display.</div><div dir="auto"><br></div><div dir="auto">We can, of course, disable it in Mesa instead to get the same effect.</div><div dir="auto"><br></div><div dir="auto">We would need perf numbers for dGPUs to be able to tell whether it's beneficial with the cost of DCC retiling.</div><div dir="auto"><br></div><div dir="auto">Marek<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Apr 28, 2023, 12:11 Joshua Ashton <<a href="mailto:joshua@froggi.es">joshua@froggi.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I really don't think the kernel isn't the right place to do this.<br>Is there any reason to not just disable it from the Mesa side?<br><br>We can already disable displayable DCC there, so I don't see why you are even touching the kernel.<br>It makes it infinitely harder for anyone to evaluate perf and power tradeoffs if you disable it at this level.<br><br>The whole power vs perf trade is also not a big deal on dGPUs compared to APUs. Probably needs a better heuristic either way to avoid regressing perf.<br><br>- Joshie 🐸✨<br><br><div class="gmail_quote">On 28 April 2023 10:47:17 BST, "Marek Olšák" <<a href="mailto:maraeo@gmail.com" target="_blank" rel="noreferrer">maraeo@gmail.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>Hi,</div><div><br></div><div>It's attached for review.<br></div><div><br></div><div>Thanks,<br></div><div>Marek<br></div></div>
</blockquote></div></div></blockquote></div></div></div>