Revert "Temporarily disable dmabuf video -> overlay"
Overlays aren't really overlays, but underlays. That means they're
below the primary plane, not above it, so a hole must be punched
through the primary plane. NXP did this by hacking GStreamer,
wayland-protocols and Weston. Lacking to make it all "work" is
rendering the primary plane in a format that supports alpha.
BUG: 142883165
This reverts commit e0921a74330a8c3d7dce245c70cd21f471cdde76.
Change-Id: I6cb2909842425633ef169b2144c6af37c957fb0b
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 6c0868b..b0b9cdc 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -3731,10 +3731,6 @@
struct weston_buffer *buffer = ev->surface->buffer_ref.buffer;
dmabuf = linux_dmabuf_buffer_get(buffer->resource);
if (dmabuf) {
-#if 1
- /* Temporarily disable video -> overlay */
- force_renderer = true;
-#else
if (dmabuf->attributes.format == DRM_FORMAT_NV12
|| dmabuf->attributes.format == DRM_FORMAT_P010
|| dmabuf->attributes.format == DRM_FORMAT_YUYV) {
@@ -3745,7 +3741,6 @@
force_renderer = true;
} else
force_renderer = true;
-#endif
}
}