diff --git a/patches/opencl-version_1_2/definition b/patches/opencl-version_1_2/definition index 2f9344ad..b63ae33b 100644 --- a/patches/opencl-version_1_2/definition +++ b/patches/opencl-version_1_2/definition @@ -1,2 +1 @@ Fixes: [46470] opencl: Add support for OpenCL 1.2. -Disabled: true diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 27cde37d..82e7a2e2 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -248,6 +248,7 @@ patch_enable_all () enable_oleaut32_OLEPictureImpl_SaveAsFile="$1" enable_oleaut32_OleLoadPicture="$1" enable_oleaut32_OleLoadPictureFile="$1" + enable_opencl_version_1_2="$1" enable_opengl32_wglChoosePixelFormat="$1" enable_packager_DllMain="$1" enable_pdh_PdhLookupPerfNameByIndex_processor="$1" @@ -894,6 +895,9 @@ patch_enable () oleaut32-OleLoadPictureFile) enable_oleaut32_OleLoadPictureFile="$2" ;; + opencl-version_1_2) + enable_opencl_version_1_2="$2" + ;; opengl32-wglChoosePixelFormat) enable_opengl32_wglChoosePixelFormat="$2" ;; @@ -5254,6 +5258,29 @@ if test "$enable_oleaut32_OleLoadPictureFile" -eq 1; then ) >> "$patchlist" fi +# Patchset opencl-version_1_2 +# | +# | This patchset fixes the following Wine bugs: +# | * [#46470] opencl: Add support for OpenCL 1.2. +# | +# | Modified files: +# | * configure.ac, dlls/opencl/opencl.c, dlls/opencl/opencl.spec, include/config.h.in +# | +if test "$enable_opencl_version_1_2" -eq 1; then + patch_apply opencl-version_1_2/0001-opencl-Add-OpenCL-1.0-function-pointer-loader.patch + patch_apply opencl-version_1_2/0002-opencl-Use-function-pointer-instead-of-call-the-func.patch + patch_apply opencl-version_1_2/0003-opencl-Add-OpenCL-1.1-implementation.patch + patch_apply opencl-version_1_2/0004-opencl-Add-OpenCL-1.2-implementation.patch + patch_apply opencl-version_1_2/0005-opencl-Expose-all-extensions-list-to-wine.patch + ( + printf '%s\n' '+ { "Nakarin Khankham", "opencl: Add OpenCL 1.0 function pointer loader.", 1 },'; + printf '%s\n' '+ { "Nakarin Khankham", "opencl: Use function pointer instead of call the function directly.", 1 },'; + printf '%s\n' '+ { "Nakarin Khankham", "opencl: Add OpenCL 1.1 implementation.", 1 },'; + printf '%s\n' '+ { "Nakarin Khankham", "opencl: Add OpenCL 1.2 implementation.", 1 },'; + printf '%s\n' '+ { "Nakarin Khankham", "opencl: Expose all extensions list to wine.", 1 },'; + ) >> "$patchlist" +fi + # Patchset opengl32-wglChoosePixelFormat # | # | This patchset fixes the following Wine bugs: