va: Delete the usage hint hack when we support DRM modifier

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4044>
This commit is contained in:
He Junyan 2023-06-03 21:56:09 +08:00 committed by GStreamer Marge Bot
parent d0587cda74
commit 72e4bcf4df

View file

@ -402,10 +402,6 @@ gst_va_base_transform_decide_allocation (GstBaseTransform * trans,
}
if (!allocator) {
/* XXX(victor): USAGE_HINT_VPP_WRITE creates tiled dmabuf frames
* in iHD */
if (gst_caps_is_dmabuf (outcaps) && GST_VIDEO_INFO_IS_RGB (&vinfo))
usage_hint = VA_SURFACE_ATTRIB_USAGE_HINT_GENERIC;
if (!(allocator =
gst_va_base_transform_allocator_from_caps (self, outcaps)))
return FALSE;