mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
va: allocator: Disable derived for Gallium if RGB and reading.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2127>
This commit is contained in:
parent
ced093c738
commit
166082f3c3
1 changed files with 6 additions and 0 deletions
|
@ -1271,6 +1271,12 @@ _va_map_unlocked (GstVaMemory * mem, GstMapFlags flags)
|
||||||
|| ((flags & GST_MAP_WRITE)
|
|| ((flags & GST_MAP_WRITE)
|
||||||
&& GST_VIDEO_INFO_IS_YUV (&va_allocator->derived_info)));
|
&& GST_VIDEO_INFO_IS_YUV (&va_allocator->derived_info)));
|
||||||
break;
|
break;
|
||||||
|
case GST_VA_IMPLEMENTATION_MESA_GALLIUM:
|
||||||
|
/* Reading RGB derived images, with non-standard resolutions,
|
||||||
|
* looks like tiled too. TODO(victor): fill a bug in Mesa. */
|
||||||
|
use_derived = va_allocator->use_derived && !((flags & GST_MAP_READ)
|
||||||
|
&& GST_VIDEO_INFO_IS_RGB (&va_allocator->derived_info));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
use_derived = va_allocator->use_derived;
|
use_derived = va_allocator->use_derived;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue