mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
d3d11decoder: Do not preallocate texture using downstream d3d11 buffer pool
Our decoder implementation does not use downstream d3d11 pool for decoding because of special requirement of D3D11/DXVA. So preallocation using the downstream buffer pool will waste GPU memory in most cases. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2211>
This commit is contained in:
parent
cf684051dd
commit
dd32e2efbc
1 changed files with 4 additions and 0 deletions
|
@ -1709,6 +1709,10 @@ gst_d3d11_decoder_decide_allocation (GstD3D11Decoder * decoder,
|
|||
}
|
||||
|
||||
GST_DEBUG_OBJECT (videodec, "Downstream min buffres: %d", min);
|
||||
|
||||
/* We will not use downstream pool for decoding, and therefore preallocation
|
||||
* is unnecessary. So, Non-zero min buffer will be a waste of GPU memory */
|
||||
min = 0;
|
||||
}
|
||||
|
||||
gst_buffer_pool_set_config (pool, config);
|
||||
|
|
Loading…
Reference in a new issue