mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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))
|
||||
return FALSE;
|
||||
|
||||
/* FIXME(victor): find a better way since this is just a hack for
|
||||
* i965 driver */
|
||||
if (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY) {
|
||||
/* workaround for missing layered dmabuf formats in i965 */
|
||||
if (gst_va_display_is_implementation (self->display,
|
||||
GST_VA_IMPLEMENTATION_INTEL_I965)
|
||||
&& (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY)) {
|
||||
/* These are not representable as separate planes */
|
||||
export_flags = VA_EXPORT_SURFACE_COMPOSED_LAYERS;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue