Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 17:36:56 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546296 - head/multimedia/QtAV/files
Message-ID:  <202008261736.07QHauvX025363@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Wed Aug 26 17:36:55 2020
New Revision: 546296
URL: https://svnweb.freebsd.org/changeset/ports/546296

Log:
  multimedia/QtAV: fix build on current

Added:
  head/multimedia/QtAV/files/patch-src_codec_video_SurfaceInteropCUDA.cpp   (contents, props changed)

Added: head/multimedia/QtAV/files/patch-src_codec_video_SurfaceInteropCUDA.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/QtAV/files/patch-src_codec_video_SurfaceInteropCUDA.cpp	Wed Aug 26 17:36:55 2020	(r546296)
@@ -0,0 +1,20 @@
+--- src/codec/video/SurfaceInteropCUDA.cpp.orig	2020-08-26 17:34:29 UTC
++++ src/codec/video/SurfaceInteropCUDA.cpp
+@@ -132,7 +132,7 @@ bool HostInteropResource::map(int picIndex, const CUVI
+         if (!ensureResource(pitch, H)) //copy height is coded height
+             return false;
+         // the same thread (context) as cuMemAllocHost, so no ccontext switch is needed
+-        CUDA_ENSURE(cuMemcpyDtoH(host_mem.data, devptr, pitch*H*3/2), NULL);
++        CUDA_ENSURE(cuMemcpyDtoH(host_mem.data, devptr, pitch*H*3/2), false);
+         host_mem.index = picIndex;
+     }
+     // map to texture
+@@ -173,7 +173,7 @@ bool HostInteropResource::ensureResource(int pitch, in
+     if (!share_ctx) // cuMemFreeHost will be called in dtor which is not the current thread.
+         CUDA_WARN(cuCtxPushCurrent(ctx));
+     // NV12
+-    CUDA_ENSURE(cuMemAllocHost((void**)&host_mem.data, pitch*height*3/2), NULL);
++    CUDA_ENSURE(cuMemAllocHost((void**)&host_mem.data, pitch*height*3/2), false);
+     if (!share_ctx)
+         CUDA_WARN(cuCtxPopCurrent(NULL)); //can be null or &ctx
+     return true;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008261736.07QHauvX025363>