va: allocator: set workaround only for i965 driver
In commit 117453b9 a i965 driver workaround was added for all drivers, because at that time we didn't have a driver implementation API. Now there's one. This patch set the workaround only for the i965 driver. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2021>
This commit is contained in:
parent
21347e13f5
commit
7a47a7b4c4
@ -644,9 +644,10 @@ gst_va_dmabuf_allocator_setup_buffer_full (GstAllocator * allocator,
|
|||||||
&surface, 1))
|
&surface, 1))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* FIXME(victor): find a better way since this is just a hack for
|
/* workaround for missing layered dmabuf formats in i965 */
|
||||||
* i965 driver */
|
if (gst_va_display_is_implementation (self->display,
|
||||||
if (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY) {
|
GST_VA_IMPLEMENTATION_INTEL_I965)
|
||||||
|
&& (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY)) {
|
||||||
/* These are not representable as separate planes */
|
/* These are not representable as separate planes */
|
||||||
export_flags = VA_EXPORT_SURFACE_COMPOSED_LAYERS;
|
export_flags = VA_EXPORT_SURFACE_COMPOSED_LAYERS;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user