gst: Don't ask for DMA buffers

Gstreamer simply mmap()s the DMA buffers. This can be very very slow on
some hardware, so don't ask for it. For gstreamer to support DMA
buffers, it will need to support a proper way of transferring the
buffers from the GPU to the CPU, e.g. using EGL/OpenGL.
This commit is contained in:
Jonas Ådahl 2021-11-11 11:00:50 +01:00 committed by Wim Taymans
parent 263adb45f4
commit 15b4c58e80
2 changed files with 0 additions and 2 deletions

View file

@ -254,7 +254,6 @@ pool_activated (GstPipeWirePool *pool, GstPipeWireSink *sink)
max_buffers ? max_buffers : INT32_MAX), max_buffers ? max_buffers : INT32_MAX),
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16), SPA_PARAM_BUFFERS_align, SPA_POD_Int(16),
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int( SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(
(1<<SPA_DATA_DmaBuf) |
(1<<SPA_DATA_MemFd) | (1<<SPA_DATA_MemFd) |
(1<<SPA_DATA_MemPtr)), (1<<SPA_DATA_MemPtr)),
0); 0);

View file

@ -839,7 +839,6 @@ on_param_changed (void *data, uint32_t id,
SPA_PARAM_BUFFERS_stride, SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX), SPA_PARAM_BUFFERS_stride, SPA_POD_CHOICE_RANGE_Int(0, 0, INT32_MAX),
SPA_PARAM_BUFFERS_align, SPA_POD_Int(16), SPA_PARAM_BUFFERS_align, SPA_POD_Int(16),
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int( SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(
(1<<SPA_DATA_DmaBuf) |
(1<<SPA_DATA_MemFd) | (1<<SPA_DATA_MemFd) |
(1<<SPA_DATA_MemPtr))); (1<<SPA_DATA_MemPtr)));