<div dir="ltr"><div>Thanks Pekka for your reply.</div><div><br></div><div>I work for an OEM company. We have given the support of Integer Scaling though NN in Windows environment though System Settings. </div><div>So we are providing the similar support even in Linux environment as well. This is the reason, I have chosen Weston compositor as a POC for Integer Scaling through NN. </div><div><br></div><div>And our Display hardware supports the Scaling with multiple scaling filters. If we make the modifications to do the support with DRM planes, we should consider the fallback option as well. So the default fallback is GPU composition. </div><div>In order to provide the support to GPU composition, have started exploring this Integer Scaling functionality in GL composition. </div><div><br></div><div>As per your comments, App can't inform to the compositor about the Integer Scaling for a specific window until and unless we should add an extra variable or some request to the surface. I think this is very bad idea of adding.</div><div><br></div><div>can you please suggest, any other compositor which we can chose for the desktop functionality ?</div><div><br></div><div>Thanks </div><div>Uday Kiran</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 21, 2020 at 6:11 PM Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 21 Jan 2020 14:16:09 +0200<br>
Pekka Paalanen <<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>> wrote:<br>
<br>
> On Tue, 21 Jan 2020 16:53:51 +0530<br>
> uday kiran pichika <<a href="mailto:udaykiran.pichika@gmail.com" target="_blank">udaykiran.pichika@gmail.com</a>> wrote:<br>
> <br>
> > What is present in Weston currently ?<br>
> > <br>
> > I know that there is scaling logic already present in the Weston<br>
> > compositor in GL composition path.<br>
> > <br>
> > *But just wanted to know whether it is Integer scaling as mentioned above ?<br>
> > If not, does it possible to implement Integer Scaling in the compositor ?* <br>
> <br>
> Hi,<br>
> <br>
> yeah, Weston's GL-renderer does pick between NEAREST and LINEAR sampling<br>
> filters, but I think the conditions do not detect an integer factor,<br>
> only unity factor, so you probably get NEAREST only without any<br>
> scaling. This is something that could be fixed, but doing it properly<br>
> will take effort.<br>
<br>
I found some related issues filed:<br>
<br>
- for computing an end-to-end transformation matrix for analysis so<br>
that decision between NEAREST and LINEAR takes all combinations into<br>
account: <a href="https://gitlab.freedesktop.org/wayland/weston/issues/47" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/wayland/weston/issues/47</a><br>
<br>
- but since that is a high risk change, we need screenshooting based<br>
tests in the test suite:<br>
<a href="https://gitlab.freedesktop.org/wayland/weston/issues/52" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/wayland/weston/issues/52</a><br>
<br>
The latter I have finally started on, now that<br>
<a href="https://gitlab.freedesktop.org/wayland/weston/merge_requests/344" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/wayland/weston/merge_requests/344</a> is<br>
more or less done except for one Mesa bug. This depends on<br>
<a href="https://gitlab.freedesktop.org/wayland/weston/merge_requests/287" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/wayland/weston/merge_requests/287</a> which<br>
should be ready to merge as soon as the release freeze is lifted.<br>
<br>
However, we probably should write screenshooting tests for wp_viewport<br>
first, as well.<br>
<br>
<br>
Thanks,<br>
pq<br>
</blockquote></div></div>