linux-stable/drivers/gpu/drm/vkms
Igor Torrente bc0d7fdefe drm: vkms: Supports to the case where primary plane doesn't match the CRTC
We will remove the current assumption that the primary plane has the
same size and position as CRTC and that the primary plane is the
bottom-most in zpos order, or is even enabled. At least as far
as the blending machinery is concerned.

For that we will add CRTC dimension information to `vkms_crtc_state`
and add a opaque black backgound color.

Because now we need to fill the background, we had a loss in
performance with this change. Results running the IGT[1] test
`igt@kms_cursor_crc@pipe-a-cursor-512x512-onscreen` ten times:

|                  Frametime                   |
|:--------------------------------------------:|
|  Implementation |  Previous |   This commit  |
|:---------------:|:---------:|:--------------:|
| frametime range |  5~18 ms  |     10~22 ms   |
|     Average     |  8.47 ms  |     12.32 ms   |

[1] IGT commit id: bc3f6833a12221a46659535dac06ebb312490eb4

V6: Improve the commit description (Pekka Paalanen).
    Update some comments (Pekka Paalanen).
    Remove some fields from `vkms_crtc_state` and move where
    some variables are set (Pekka Paalanen).

Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Igor Torrente <igormtorrente@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220905190811.25024-8-igormtorrente@gmail.com
2022-09-05 20:18:42 -01:00
..
Makefile drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_composer.c drm: vkms: Supports to the case where primary plane doesn't match the CRTC 2022-09-05 20:18:42 -01:00
vkms_crtc.c drm/vkms: fix misuse of WARN_ON 2021-03-25 08:23:28 -03:00
vkms_drv.c drm/vkms: Create a debugfs file to get vkms config data 2021-07-08 21:44:13 +01:00
vkms_drv.h drm: vkms: Add fb information to vkms_writeback_job 2022-09-05 20:12:18 -01:00
vkms_formats.c drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_formats.h drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_output.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vkms_plane.c drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_writeback.c drm: vkms: Supports to the case where primary plane doesn't match the CRTC 2022-09-05 20:18:42 -01:00