Index: head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_CMakeLists.txt =================================================================== --- head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_CMakeLists.txt (nonexistent) +++ head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_CMakeLists.txt (revision 552895) @@ -0,0 +1,11 @@ +--- src/ncnn/CMakeLists.txt.orig 2020-10-21 19:34:57 UTC ++++ src/ncnn/CMakeLists.txt +@@ -66,6 +66,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(mips)") + set(NCNN_TARGET_ARCH mips) + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(riscv)") + set(NCNN_TARGET_ARCH riscv) ++elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(powerpc)") ++ set(NCNN_TARGET_ARCH powerpc) + else() + set(NCNN_TARGET_ARCH x86) + option(NCNN_AVX2 "optimize x86 platform with avx2" ON) Property changes on: head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_CMakeLists.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_src_layer_interp.cpp =================================================================== --- head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_src_layer_interp.cpp (nonexistent) +++ head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_src_layer_interp.cpp (revision 552895) @@ -0,0 +1,15 @@ +--- src/ncnn/src/layer/interp.cpp.orig 2020-10-21 19:36:40 UTC ++++ src/ncnn/src/layer/interp.cpp +@@ -41,6 +41,12 @@ int Interp::load_param(const ParamDict& pd) + return 0; + } + ++ ++#if defined(__GNUC__) && defined(__powerpc__) && defined(__ALTIVEC__) ++// NOTE gcc altivec optimized version produce wrong result ++// so I have to disable vectorize here --- nihui ++__attribute__((optimize("no-tree-vectorize"))) ++#endif + static void linear_coeffs(int w, int outw, int* xofs, float* alpha) + { + double scale = (double)w / outw; Property changes on: head/graphics/waifu2x-ncnn-vulkan/files/patch-src_ncnn_src_layer_interp.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property