Paul Cercueil
abec017c3d
drm/ingenic: ipu: Search for scaling coefs up to 102% of the screen
...
Increase the scaled image's theorical width/height until we find a
configuration that has valid scaling coefficients, up to 102% of the
screen's resolution. This makes sure that we can scale from almost
every resolution possible at the cost of a very small distorsion.
The CRTC_W / CRTC_H are not modified.
This algorithm was already in place but would not try to go above the
screen's resolution, and as a result would only work if the CRTC_W /
CRTC_H were smaller than the screen resolution. It will now try until it
reaches 102% of the screen's resolution.
Note that this algorithm exists mostly as a band-aid for a missing
functionality: it is not possible for userspace to request the closest
mode that would encapsulate the provided one, because the GEM buffer is
created beforehand. If there was a way to let the kernel tweak the mode,
I could write a better algorithm that would result in a better looking
picture.
Signed-off-by: Paul Cercueil <paul@crapouillou.net >
Acked-by: Sam Ravnborg <sam@ravnborg.org >
Link: https://patchwork.freedesktop.org/patch/msgid/20201105083905.8780-1-paul@crapouillou.net
2020-11-11 11:47:11 +00:00
..
2020-11-11 11:11:20 +10:00
2020-10-09 09:55:59 +02:00
2020-11-10 12:41:06 +01:00
2020-11-10 12:41:06 +01:00
2020-11-06 10:31:26 +01:00
2020-11-10 12:41:06 +01:00
2020-11-06 10:31:26 +01:00
2020-11-09 09:20:00 +01:00
2020-11-08 15:45:55 +01:00
2020-11-09 09:19:24 +01:00
2020-11-09 09:16:41 +01:00
2020-11-06 10:31:26 +01:00
2020-11-09 10:00:02 +01:00
2020-11-06 10:31:26 +01:00
2020-08-06 14:27:31 -07:00
2020-09-11 10:54:17 +02:00
2020-11-10 17:11:37 +01:00
2020-11-10 17:11:37 +01:00
2020-11-11 11:47:11 +00:00
2020-11-10 17:15:53 +01:00
2020-11-09 09:19:24 +01:00
2020-11-06 10:31:26 +01:00
2020-11-10 12:41:06 +01:00
2020-11-06 10:31:26 +01:00
2020-11-06 23:19:07 +01:00
2020-11-09 09:19:24 +01:00
2020-11-10 10:38:57 +01:00
2020-11-10 15:22:28 +01:00
2020-11-11 11:11:44 +10:00
2020-11-10 14:52:30 +02:00
2020-11-09 08:15:03 +01:00
2020-11-10 17:11:37 +01:00
2020-11-09 09:23:03 +01:00
2020-11-11 11:11:03 +10:00
2020-11-06 23:18:52 +01:00
2020-11-11 11:12:03 +10:00
2020-11-06 10:31:26 +01:00
2020-11-10 12:41:06 +01:00
2020-08-23 17:36:59 -05:00
2020-11-04 11:49:10 +10:00
2020-09-01 13:02:33 +05:30
2020-11-06 10:31:26 +01:00
2020-11-06 10:31:26 +01:00
2020-11-06 10:31:26 +01:00
2020-11-06 10:31:26 +01:00
2020-11-10 12:41:06 +01:00
2020-11-10 14:34:16 +02:00
2020-11-06 10:31:26 +01:00
2020-11-09 09:19:24 +01:00
2020-11-11 11:11:03 +10:00
2020-11-06 10:31:26 +01:00
2020-11-09 09:19:24 +01:00
2020-11-06 10:31:26 +01:00
2020-11-09 09:19:24 +01:00
2020-11-10 17:11:37 +01:00
2020-11-10 15:22:28 +01:00
2020-10-17 10:10:24 +02:00
2020-11-10 12:41:06 +01:00
2020-11-09 09:19:24 +01:00
2020-11-11 11:11:03 +10:00
2020-11-09 09:19:24 +01:00
2020-11-06 10:31:26 +01:00
2020-11-06 10:31:26 +01:00
2020-11-02 12:37:49 +01:00
2020-07-02 20:25:51 +02:00
2020-10-21 12:19:54 +03:00
2020-10-08 11:30:03 +02:00
2020-06-15 14:49:50 +01:00
2020-10-21 12:19:54 +03:00
2020-11-02 14:04:53 +01:00
2020-06-23 19:53:27 +02:00
2020-08-23 17:36:59 -05:00
2020-09-10 08:17:48 +02:00
2020-05-27 14:31:42 +03:00
2020-11-09 09:19:45 +01:00
2020-11-04 17:47:57 +01:00
2020-10-22 13:49:14 +02:00
2020-07-13 13:29:20 -04:00
2020-07-02 15:26:00 +02:00
2020-10-21 12:19:54 +03:00
2020-10-21 12:19:54 +03:00
2020-09-01 09:45:44 +02:00
2020-06-25 15:47:14 -07:00
2020-10-15 13:58:54 -04:00
2020-11-04 12:17:34 +10:00
2020-11-10 12:41:01 -05:00
2020-11-06 10:31:26 +01:00
2020-11-06 13:51:04 -05:00
2020-06-19 09:20:21 +02:00
2020-11-10 10:38:16 +01:00
2020-11-06 10:31:26 +01:00
2020-05-26 13:33:08 +02:00
2020-10-20 20:51:42 +01:00
2020-09-09 11:45:18 +02:00
2020-11-09 09:23:03 +01:00
2020-05-19 22:31:31 +01:00
2020-11-09 09:19:24 +01:00
2020-11-09 09:17:36 +01:00
2020-11-11 11:11:03 +10:00
2020-11-09 09:19:36 +01:00
2020-11-09 09:19:36 +01:00
2020-07-02 15:26:00 +02:00
2020-10-21 18:05:11 +02:00
2020-05-29 12:58:11 +02:00
2020-07-02 15:26:00 +02:00
2020-07-02 15:26:00 +02:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-07-10 20:21:45 +02:00
2020-06-23 15:46:40 +02:00
2020-07-02 15:26:00 +02:00
2020-08-17 13:41:50 -04:00
2020-08-23 17:36:59 -05:00
2020-08-11 11:58:31 +10:00
2020-08-04 11:45:23 +02:00
2020-08-16 17:12:18 +02:00
2020-10-21 18:05:11 +02:00
2020-10-21 12:19:54 +03:00
2020-11-09 09:19:36 +01:00
2020-07-31 14:42:37 +10:00
2020-06-02 10:59:11 -07:00
2020-11-03 12:20:09 +01:00
2020-08-02 15:22:31 +02:00
2020-06-03 10:24:23 +02:00
2020-08-06 11:55:43 -07:00
2020-11-06 10:31:26 +01:00
2020-11-10 17:19:14 +01:00
2020-05-20 20:03:45 +02:00
2020-11-09 09:19:24 +01:00
2020-11-05 19:20:38 +01:00