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:
Seungha Yang 2024-06-24 20:49:19 +09:00
parent 245e15eab0
commit e71ffe978a

View file

@ -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);