va: allocator: Fix translation of VADRMPRIMESurfaceDescriptor
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Jun 2022 13:02:52 +0000 (09:02 -0400)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 24 Jun 2022 12:14:03 +0000 (14:14 +0200)
commit83c51c981222430c7a807661334c4ac65d34f7a1
tree751e968897ee59e5f171af7a7034f70b810672a6
parent170271b86f8de64efc99b5ca66d9ea04e54f16c6
va: allocator: Fix translation of VADRMPRIMESurfaceDescriptor

VADRMPRIMESurfaceDescriptor structure describes the offsets from the
point of view of the specific handle (DMABuf). While GstVideoInfo
(and the meta) describes offsets from the point of the view of the
GstBuffer, an aggregate of all the GstMemory (1 per handle).

This changes combined with [Mesa Fix](https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16813)
fixes decoding failure with AMD driver.

Fixes #1223

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2574>
subprojects/gst-plugins-bad/gst-libs/gst/va/gstvaallocator.c