Bug 94817 - Nearest neighbor scaling?
Summary: Nearest neighbor scaling?
Status: RESOLVED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-04 14:44 UTC by N. W.
Modified: 2016-04-05 21:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
attachment-9966-0.html (3.33 KB, text/html)
2016-04-05 03:35 UTC, Ilia Mirkin
no flags Details

Description N. W. 2016-04-04 14:44:53 UTC
Hello,

would it be possible that you add a nearest-neighbor scaling mode to the driver, so that one could display 1920x1080 natively on a 3840x2160 monitor or 1280x720 natively on a 2560x1440 monitor and so on (one pixel becomes four pixels)?

There is some information on this topic over there:

https://forums.geforce.com/default/topic/844905/geforce-drivers/integer-scaling-mode/

Regards
Comment 1 Ilia Mirkin 2016-04-05 03:35:53 UTC
Created attachment 122710 [details]
attachment-9966-0.html

I believe you can get this behaviour by setting the scaling mode property
to full. This should be possible with xrandr, or directly via the kms api.
It defaults to no scaling for external screens, as those usually have
better scalers built in.
On Apr 4, 2016 10:44 AM, <bugzilla-daemon@freedesktop.org> wrote:

> Bug ID 94817 <https://bugs.freedesktop.org/show_bug.cgi?id=94817>
> Summary Nearest neighbor scaling?
> Product xorg
> Version unspecified
> Hardware Other
> OS All
> Status NEW
> Severity enhancement
> Priority medium
> Component Driver/nouveau
> Assignee nouveau@lists.freedesktop.org
> Reporter nw9165-3201@yahoo.com
> QA Contact xorg-team@lists.x.org
>
> Hello,
>
> would it be possible that you add a nearest-neighbor scaling mode to the
> driver, so that one could display 1920x1080 natively on a 3840x2160 monitor or
> 1280x720 natively on a 2560x1440 monitor and so on (one pixel becomes four
> pixels)?
>
> There is some information on this topic over there:
> https://forums.geforce.com/default/topic/844905/geforce-drivers/integer-scaling-mode/
>
> Regards
>
> ------------------------------
> You are receiving this mail because:
>
>    - You are the assignee for the bug.
>
>
> _______________________________________________
> Nouveau mailing list
> Nouveau@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/nouveau
>
>
Comment 2 N. W. 2016-04-05 13:35:07 UTC
Hi,

actually I have submitted the same feature request for the Intel and AMD drivers and also for the NVIDIA proprietary one as well yesterday. It has resulted in a patch for xrandr that allows to use nearest neighbor scaling now, see:

https://bugs.freedesktop.org/show_bug.cgi?id=94816
https://bugs.freedesktop.org/show_bug.cgi?id=94820
https://bugs.freedesktop.org/show_bug.cgi?id=94819

Anyway, as already being discussed in those three threads, it would be interesting to know if the dedicated hardware scaler inside the GPU could also be used for this instead of using xrandr.

Can anyone comment on this?

Regards
Comment 3 Ilia Mirkin 2016-04-05 21:29:09 UTC
(In reply to nw9165-3201 from comment #2)
> Hi,
> 
> actually I have submitted the same feature request for the Intel and AMD
> drivers and also for the NVIDIA proprietary one as well yesterday. It has
> resulted in a patch for xrandr that allows to use nearest neighbor scaling
> now, see:
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=94816
> https://bugs.freedesktop.org/show_bug.cgi?id=94820
> https://bugs.freedesktop.org/show_bug.cgi?id=94819
> 
> Anyway, as already being discussed in those three threads, it would be
> interesting to know if the dedicated hardware scaler inside the GPU could
> also be used for this instead of using xrandr.
> 
> Can anyone comment on this?
> 
> Regards

The thing I suggested earlier will use hw for scaling. Run 'xrandr --props' to find the exact property. IOW the feature already exists.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.