weston/libweston/backend-drm
Marius Vlad 27ce9dadd8 backend-drm: Do not overwrite plane's index when creating virtual plane
Starting with commit 4cde507be6 "backend-drm: fix plane sorting" the
plane list will have a descending order of the planes rather than ascending.

This reversed order had the side-effect of exposing the fact that we
don't set-up a plane index when creating the drm_plane using the DRM
virtual API. Without settting a plane index for that drm_plane we
effectively overwrite the plane index which has the 0 (zero) entry.

This wasn't an issue before commit 4cde507be6 "backend-drm: fix
plane sorting" as it seems we never picked up that plane index as
being a suitable one due to the fact that those were assigned to primary
planes, but after that commit, the cursor plane will be one getting
the 0 (zero) plane index.

Finally, this would trip over because we attempt to place a (cursor)
view on a primary plane (where it would've normally be a cursor
plane) and we end up with no framebuffer ref.

This is fixed trivially by assigning a plane index, different than the
ones already created by create_spirtes().

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2023-02-07 16:24:07 +02:00
..
drm-gbm.c backend-drm: use pixel_format_info instead of gbm_format 2023-01-31 15:32:24 +00:00
drm-internal.h drm-backend: Enable plane rotations 2023-02-02 12:25:56 -06:00
drm-virtual.c backend-drm: Do not overwrite plane's index when creating virtual plane 2023-02-07 16:24:07 +02:00
drm.c backend-drm: Support tearing 2023-02-01 10:12:55 -06:00
fb.c drm-backend: Enable plane rotations 2023-02-02 12:25:56 -06:00
kms-color.c Revert "backend-drm: add HDR_OUTPUT_METADATA definitions" 2022-06-07 09:35:14 +01:00
kms.c backend-drm: Set rotation property on planes when possible 2023-02-02 12:25:56 -06:00
libbacklight.c libbacklight: Fix backlight never gets initialized 2022-04-11 08:38:00 +03:00
libbacklight.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00
meson.build build: simplify dep_egl a bit 2022-12-14 11:57:24 +00:00
modes.c backend-drm: get the drm device from the output 2022-06-03 09:17:49 +02:00
state-helpers.c drm-backend: Enable plane rotations 2023-02-02 12:25:56 -06:00
state-propose.c drm-backend: Enable plane rotations 2023-02-02 12:25:56 -06:00
vaapi-recorder.c drm/vaapi: Fix pointer-size confusion 2021-08-03 11:13:23 +00:00
vaapi-recorder.h backend-drm: move into new subdir 2019-05-16 13:32:34 +01:00