mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
d3d12converter: Make sure data upload before executing compute shader
Use read d3d12 map, so that upload can happen if needed Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7093>
This commit is contained in:
parent
245e15eab0
commit
e71ffe978a
1 changed files with 1 additions and 1 deletions
|
@ -445,7 +445,7 @@ gst_d3d12_unpack_execute (GstD3D12Unpack * unpack, GstBuffer * buffer,
|
|||
GstD3D12Frame in_frame;
|
||||
GstD3D12Frame out_frame;
|
||||
if (!gst_d3d12_frame_map (&in_frame, &priv->in_info, upload_buf,
|
||||
GST_MAP_D3D12, GST_D3D12_FRAME_MAP_FLAG_SRV)) {
|
||||
GST_MAP_READ_D3D12, GST_D3D12_FRAME_MAP_FLAG_SRV)) {
|
||||
GST_ERROR_OBJECT (unpack, "Couldn't map input frame");
|
||||
gst_buffer_unref (upload_buf);
|
||||
gst_buffer_unref (outbuf);
|
||||
|
|
Loading…
Reference in a new issue