mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
va: Use driver implementation macro rather than function.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2642>
This commit is contained in:
parent
e1e2d8d58c
commit
685a611812
2 changed files with 4 additions and 8 deletions
|
@ -533,8 +533,7 @@ gst_va_dmabuf_allocator_setup_buffer_full (GstAllocator * allocator,
|
|||
}
|
||||
|
||||
/* HACK(victor): disable tiling for i965 driver for RGB formats */
|
||||
if (gst_va_display_is_implementation (self->display,
|
||||
GST_VA_IMPLEMENTATION_INTEL_I965)
|
||||
if (GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_I965)
|
||||
&& GST_VIDEO_INFO_IS_RGB (&self->info)) {
|
||||
/* *INDENT-OFF* */
|
||||
ext_buf = (VASurfaceAttribExternalBuffers) {
|
||||
|
@ -555,8 +554,7 @@ gst_va_dmabuf_allocator_setup_buffer_full (GstAllocator * allocator,
|
|||
return FALSE;
|
||||
|
||||
/* workaround for missing layered dmabuf formats in i965 */
|
||||
if (gst_va_display_is_implementation (self->display,
|
||||
GST_VA_IMPLEMENTATION_INTEL_I965)
|
||||
if (GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_I965)
|
||||
&& (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY)) {
|
||||
/* These are not representable as separate planes */
|
||||
export_flags = VA_EXPORT_SURFACE_COMPOSED_LAYERS;
|
||||
|
|
|
@ -242,8 +242,7 @@ format_is_accepted (GstVaFilter * self, GstVideoFormat format)
|
|||
{
|
||||
/* https://github.com/intel/media-driver/issues/690
|
||||
* https://github.com/intel/media-driver/issues/644 */
|
||||
if (!gst_va_display_is_implementation (self->display,
|
||||
GST_VA_IMPLEMENTATION_INTEL_IHD))
|
||||
if (!GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_IHD))
|
||||
return TRUE;
|
||||
|
||||
switch (format) {
|
||||
|
@ -1723,8 +1722,7 @@ gst_va_filter_has_compose (GstVaFilter * self)
|
|||
return FALSE;
|
||||
|
||||
/* HACK(uartie): i965 can't do composition */
|
||||
if (gst_va_display_is_implementation (self->display,
|
||||
GST_VA_IMPLEMENTATION_INTEL_I965))
|
||||
if (GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_I965))
|
||||
return FALSE;
|
||||
|
||||
/* some drivers can compose, but may not support blending (e.g. GALLIUM) */
|
||||
|
|
Loading…
Reference in a new issue