drm/vkms: add support for multiple overlay planes
authorJosé Expósito <jose.exposito89@gmail.com>
Fri, 7 Jan 2022 18:28:08 +0000 (19:28 +0100)
committerMelissa Wen <melissa.srw@gmail.com>
Sun, 9 Jan 2022 17:14:35 +0000 (16:14 -0100)
commitdf2d385cb4132e945d5bc17d387d0fb6f5d4d66e
tree3fde08b9822b6c328e813eb8e47a39d8ade3c9ae
parent5edaa2b9748979b08fcdb2f65781aac39e6ae011
drm/vkms: add support for multiple overlay planes

Create 8 overlay planes instead of 1 when the "enable_overlay" module
parameter is set.

The following igt-gpu-tools tests were executed without finding
regressions. Notice than the numbers are identical:

                    |     master branch     |      this  patch      |
                    | SUCCESS | SKIP | FAIL | SUCCESS | SKIP | FAIL |
 kms_atomic         |      10 |   02 |   00 |      10 |   02 |   00 |
 kms_plane_cursor   |      09 |   45 |   00 |      09 |   45 |   00 |
 kms_plane_multiple |      01 |   23 |   00 |      01 |   23 |   00 |
 kms_writeback      |      04 |   00 |   00 |      04 |   00 |   00 |

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220107182809.141003-2-jose.exposito89@gmail.com
drivers/gpu/drm/vkms/vkms_drv.h
drivers/gpu/drm/vkms/vkms_output.c