Added patch to implement support for CUDA GPU video decoding.

This commit is contained in:
Sebastian Lackner
2015-01-07 22:37:15 +01:00
parent 3f85f1763b
commit fe43f3ddc6
5 changed files with 663 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
Fixes: Support for CUDA GPU video decoding
Depends: nvapi-Stub_DLL

View File

@@ -127,6 +127,7 @@ patch_enable_all ()
enable_ntoskrnl_Stub_FileObject="$1"
enable_nvcuda_CUDA_Support="$1"
enable_nvapi_Stub_DLL="$1"
enable_nvcuvid_CUDA_Video_Support="$1"
enable_ole32_CoWaitForMultipleHandles="$1"
enable_quartz_MediaSeeking_Positions="$1"
enable_riched20_IText_Interface="$1"
@@ -413,6 +414,9 @@ patch_enable ()
nvapi-Stub_DLL)
enable_nvapi_Stub_DLL="$2"
;;
nvcuvid-CUDA_Video_Support)
enable_nvcuvid_CUDA_Video_Support="$2"
;;
ole32-CoWaitForMultipleHandles)
enable_ole32_CoWaitForMultipleHandles="$2"
;;
@@ -694,10 +698,10 @@ if [ "$enable_wined3d_CSMT_Main" -eq 1 ]; then
fi
if [ "$enable_wined3d_CSMT_Helper" -eq 1 ]; then
[ "$enable_makedep_PARENTSPEC" -gt 1 ] && abort "ERROR: Patchset makedep-PARENTSPEC disabled, but wined3d-CSMT_Helper depends on that." >&2
[ "$enable_wined3d_DXTn" -gt 1 ] && abort "ERROR: Patchset wined3d-DXTn disabled, but wined3d-CSMT_Helper depends on that." >&2
enable_makedep_PARENTSPEC=1
[ "$enable_makedep_PARENTSPEC" -gt 1 ] && abort "ERROR: Patchset makedep-PARENTSPEC disabled, but wined3d-CSMT_Helper depends on that." >&2
enable_wined3d_DXTn=1
enable_makedep_PARENTSPEC=1
fi
if [ "$enable_server_ACL_Compat" -eq 1 ]; then
@@ -715,6 +719,11 @@ if [ "$enable_server_Stored_ACLs" -eq 1 ]; then
enable_ntdll_DOS_Attributes=1
fi
if [ "$enable_nvcuvid_CUDA_Video_Support" -eq 1 ]; then
[ "$enable_nvapi_Stub_DLL" -gt 1 ] && abort "ERROR: Patchset nvapi-Stub_DLL disabled, but nvcuvid-CUDA_Video_Support depends on that." >&2
enable_nvapi_Stub_DLL=1
fi
if [ "$enable_nvapi_Stub_DLL" -eq 1 ]; then
[ "$enable_nvcuda_CUDA_Support" -gt 1 ] && abort "ERROR: Patchset nvcuda-CUDA_Support disabled, but nvapi-Stub_DLL depends on that." >&2
enable_nvcuda_CUDA_Support=1
@@ -2046,6 +2055,19 @@ if [ "$enable_nvapi_Stub_DLL" -eq 1 ]; then
) >> "$patchlist"
fi
# Patchset nvcuvid-CUDA_Video_Support
# |
# | Modified files:
# | * configure.ac, dlls/nvcuvid/Makefile.in, dlls/nvcuvid/nvcuvid.c, dlls/nvcuvid/nvcuvid.spec, include/Makefile.in,
# | include/cuviddec.h, include/nvcuvid.h
# |
if [ "$enable_nvcuvid_CUDA_Video_Support" -eq 1 ]; then
patch_apply nvcuvid-CUDA_Video_Support/0001-nvcuvid-First-implementation.patch
(
echo '+ { "Michael Müller", "nvcuvid: First implementation.", 1 },';
) >> "$patchlist"
fi
# Patchset ole32-CoWaitForMultipleHandles
# |
# | Modified files: