From 9396d8433a9388fd4362b777513f591c87ee080b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 5 Feb 2021 15:56:29 +0100 Subject: render/gles2: remove YUV blocklist Mesa provides YUV shaders, and can import multi-planar YUV DMA-BUFs as a single EGLImage. Remove the arbitrary limitation. If the driver doesn't support importing YUV as a single EGLImage, the import will fail and the result will be the same anyways. --- render/gles2/texture.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'render/gles2') diff --git a/render/gles2/texture.c b/render/gles2/texture.c index d934be2f..28cb095b 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -269,18 +268,6 @@ struct wlr_texture *gles2_texture_from_dmabuf(struct wlr_renderer *wlr_renderer, return NULL; } - switch (attribs->format & ~DRM_FORMAT_BIG_ENDIAN) { - case WL_SHM_FORMAT_YUYV: - case WL_SHM_FORMAT_YVYU: - case WL_SHM_FORMAT_UYVY: - case WL_SHM_FORMAT_VYUY: - case WL_SHM_FORMAT_AYUV: - // TODO: YUV based formats not yet supported, require multiple images - return false; - default: - break; - } - struct wlr_gles2_texture *texture = calloc(1, sizeof(struct wlr_gles2_texture)); if (texture == NULL) { -- cgit v1.2.3