diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c index d8fcc93f0e..65923d3abb 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c @@ -1327,7 +1327,7 @@ static inline gboolean _is_old_mesa (GstVaAllocator * va_allocator) { return GST_VA_DISPLAY_IS_IMPLEMENTATION (va_allocator->display, MESA_GALLIUM) - && !gst_va_display_check_version (va_allocator->display, 23, 2); + && !gst_va_display_check_version (va_allocator->display, 23, 3); } #endif /* G_OS_WIN32 */ @@ -1376,13 +1376,15 @@ _update_image_info (GstVaAllocator * va_allocator, } va_allocator->use_derived = FALSE; #else - /* XXX: Derived in Mesa <23.3 can't use derived images for P010 format + /* XXX: Derived in radeonsi Mesa <23.3 can't use derived images for several + * cases * https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24381 + * https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26174 */ - if (va_allocator->img_format == GST_VIDEO_FORMAT_P010_10LE - && _is_old_mesa (va_allocator)) { + if (_is_old_mesa (va_allocator)) { if (feat_use_derived != GST_VA_FEATURE_DISABLED) { - GST_INFO_OBJECT (va_allocator, "Disable image derive on old Mesa."); + GST_INFO_OBJECT (va_allocator, + "Disable image derive on old Mesa (< 23.3)."); feat_use_derived = GST_VA_FEATURE_DISABLED; } va_allocator->use_derived = FALSE;