mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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
1 changed files with 4 additions and 3 deletions
|
@ -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…
Reference in a new issue