From a9211a50670acf44981f6a8037401b11e454d485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 24 Feb 2021 19:14:42 +0100 Subject: [PATCH] va: allocator: No need of fourcc to create surface. In commits 430aa327 and a119a940 there are a regression since it is possible to create surfaces without fourcc, only chroma (rtformat) is required. This regression is shown on radeonsi driver with certain color formats. Part-of: --- sys/va/gstvaallocator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/va/gstvaallocator.c b/sys/va/gstvaallocator.c index 9ef3b891a4..6138e2e7a0 100644 --- a/sys/va/gstvaallocator.c +++ b/sys/va/gstvaallocator.c @@ -1394,7 +1394,7 @@ gst_va_allocator_alloc (GstAllocator * allocator) self = GST_VA_ALLOCATOR (allocator); - if (self->fourcc == 0 || self->rt_format == 0) { + if (self->rt_format == 0) { GST_ERROR_OBJECT (self, "Unknown fourcc or chroma format"); return NULL; } @@ -1666,7 +1666,7 @@ gst_va_buffer_create_aux_surface (GstBuffer * buffer) } else if (GST_IS_VA_ALLOCATOR (mem->allocator)) { GstVaAllocator *self = GST_VA_ALLOCATOR (mem->allocator); - if (self->fourcc == 0 || self->rt_format == 0) { + if (self->rt_format == 0) { GST_ERROR_OBJECT (self, "Unknown fourcc or chroma format"); return FALSE; }