va: allocator: Use derived images only if not mapped for reading.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 31 Mar 2021 09:52:07 +0000 (11:52 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 2 Apr 2021 15:39:01 +0000 (17:39 +0200)
commit893aa67710dbc6bc1d02e6459722f6853e8b004b
tree7726439eeb17e841a225f8874e49ddd6e4a905d9
parentf987cd8df9222e4aca695e9057d9b92b281ea62c
va: allocator: Use derived images only if not mapped for reading.

Derived images are direct maps to surfaces bits, but in Intel Gen7 to
Gen9, that memory is not cachable, thus reading can be very slow (it
might produce timeout is tests such as fluster).

This patch tries first to define if derived images are possible, and
later use them only if mapping is not for reading.

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