mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +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 */
|
/* HACK(victor): disable tiling for i965 driver for RGB formats */
|
||||||
if (gst_va_display_is_implementation (self->display,
|
if (GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_I965)
|
||||||
GST_VA_IMPLEMENTATION_INTEL_I965)
|
|
||||||
&& GST_VIDEO_INFO_IS_RGB (&self->info)) {
|
&& GST_VIDEO_INFO_IS_RGB (&self->info)) {
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
ext_buf = (VASurfaceAttribExternalBuffers) {
|
ext_buf = (VASurfaceAttribExternalBuffers) {
|
||||||
|
@ -555,8 +554,7 @@ gst_va_dmabuf_allocator_setup_buffer_full (GstAllocator * allocator,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* workaround for missing layered dmabuf formats in i965 */
|
/* workaround for missing layered dmabuf formats in i965 */
|
||||||
if (gst_va_display_is_implementation (self->display,
|
if (GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_I965)
|
||||||
GST_VA_IMPLEMENTATION_INTEL_I965)
|
|
||||||
&& (fourcc == VA_FOURCC_YUY2 || fourcc == VA_FOURCC_UYVY)) {
|
&& (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;
|
||||||
|
|
|
@ -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/690
|
||||||
* https://github.com/intel/media-driver/issues/644 */
|
* https://github.com/intel/media-driver/issues/644 */
|
||||||
if (!gst_va_display_is_implementation (self->display,
|
if (!GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_IHD))
|
||||||
GST_VA_IMPLEMENTATION_INTEL_IHD))
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
@ -1723,8 +1722,7 @@ gst_va_filter_has_compose (GstVaFilter * self)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* HACK(uartie): i965 can't do composition */
|
/* HACK(uartie): i965 can't do composition */
|
||||||
if (gst_va_display_is_implementation (self->display,
|
if (GST_VA_DISPLAY_IS_IMPLEMENTATION (self->display, INTEL_I965))
|
||||||
GST_VA_IMPLEMENTATION_INTEL_I965))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* some drivers can compose, but may not support blending (e.g. GALLIUM) */
|
/* some drivers can compose, but may not support blending (e.g. GALLIUM) */
|
||||||
|
|
Loading…
Reference in a new issue