diff options
author | Philip Langdale <philipl@overt.org> | 2019-03-30 20:56:49 +0300 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-03-30 20:56:49 +0300 |
commit | 52d8f35b14bc379572e74d042d3466b8d3b6e7cf (patch) | |
tree | a5b3bd2f587fbb237e7bd7daf142d5e2724e043f /libavutil | |
parent | 5d90d1e36ef3abfa2843e54389d0ffd0fa7ca405 (diff) |
avutil/hcontext_cuda: Remove unnecessary stream synchronisation
Similarly to the previous changes, we don't need to synchronise
after a memcpy to device memory. On the other hand, we need to
keep synchronising after a copy to host memory, otherwise there's
no guarantee that subsequent host reads will return valid data.
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/hwcontext_cuda.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c index 540a7610ef..cca39e9fc7 100644 --- a/libavutil/hwcontext_cuda.c +++ b/libavutil/hwcontext_cuda.c @@ -268,10 +268,6 @@ static int cuda_transfer_data_to(AVHWFramesContext *ctx, AVFrame *dst, goto exit; } - ret = CHECK_CU(cu->cuStreamSynchronize(hwctx->stream)); - if (ret < 0) - goto exit; - exit: CHECK_CU(cu->cuCtxPopCurrent(&dummy)); |