From owner-svn-ports-head@freebsd.org Sat Aug 8 20:50:13 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 83D7937D65C; Sat, 8 Aug 2020 20:50:13 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BPDrP2qx5z4LC5; Sat, 8 Aug 2020 20:50:13 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4042EE675; Sat, 8 Aug 2020 20:50:13 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 078KoDh6000675; Sat, 8 Aug 2020 20:50:13 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 078KoCwC000674; Sat, 8 Aug 2020 20:50:12 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <202008082050.078KoCwC000674@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sat, 8 Aug 2020 20:50:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r544526 - head/graphics/waifu2x-ncnn-vulkan X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/graphics/waifu2x-ncnn-vulkan X-SVN-Commit-Revision: 544526 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Aug 2020 20:50:13 -0000 Author: jbeich Date: Sat Aug 8 20:50:12 2020 New Revision: 544526 URL: https://svnweb.freebsd.org/changeset/ports/544526 Log: graphics/waifu2x-ncnn-vulkan: back out r539374 ncnn API is not stable, updates frequently break this port. Binary is also smaller when using bundled ncnn. $ size $(which waifu2x-ncnn-vulkan) text data bss dec hex filename -7245567 242384 58992 7546943 73283f /usr/local/bin/waifu2x-ncnn-vulkan +3281223 3152 58840 3343215 33036f /usr/local/bin/waifu2x-ncnn-vulkan $ waifu2x-ncnn-vulkan -i foo.png -o bar.png [0 Intel(R) HD Graphics 530 (SKL GT2)] queueC=0[1] queueG=0[1] queueT=0[1] [0 Intel(R) HD Graphics 530 (SKL GT2)] bugsbn1=0 buglbia=0 bugcopc=0 bugihfa=0 [0 Intel(R) HD Graphics 530 (SKL GT2)] fp16p=1 fp16s=1 fp16a=1 int8s=1 int8a=1 pipeline specialization count mismatch, expect 4 but got 1 new_pipeline failed pipeline specialization count mismatch, expect 4 but got 1 new_pipeline failed Process 8606 stopped * thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28) frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69 1369 1370 assert(_set < MAX_PUSH_DESCRIPTORS); 1371 -> 1372 struct anv_descriptor_set_layout *set_layout = layout->set[_set].layout; 1373 1374 struct anv_descriptor_set *set = 1375 anv_cmd_buffer_push_descriptor_set(cmd_buffer, template->bind_point, (lldb) bt * thread #14, name = 'waifu2x-ncnn-vul', stop reason = signal SIGSEGV: invalid address (fault address: 0x28) * frame #0: 0x0000000802080be9 libvulkan_intel.so`anv_CmdPushDescriptorSetWithTemplateKHR(commandBuffer=0x000000080c432800, descriptorUpdateTemplate=0x0000000000000000, _layout=0x0000000000000000, _set=0, pData=0x000000080c440140) at anv_cmd_buffer.c:1372:69 frame #1: 0x00000000004facce waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=, pipeline=0x00000008045e3400, buffer_bindings=0x00007fffc35ea418, image_bindings=0x00007fffc35ea0f0, constants=0x00007fffc35ea400, dispatcher=0x00007fffc35ea110) at command.cpp:1457:13 frame #2: 0x00000000004f981c waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(ncnn::Pipeline const*, std::__1::vector > const&, std::__1::vector > const&, ncnn::VkMat const&) [inlined] ncnn::VkCompute::record_pipeline(this=, pipeline=, buffer_bindings=, image_bindings=0x00007fffc35ea0f0, constants=, dispatcher=) at command.cpp:1187:5 frame #3: 0x00000000004f97bb waifu2x-ncnn-vulkan`ncnn::VkCompute::record_pipeline(this=, pipeline=, bindings=, constants=, dispatcher=) at command.cpp:1175 frame #4: 0x000000000086b516 waifu2x-ncnn-vulkan`Waifu2x::process(this=0x00007fffffffdd58, inimage=0x00007fffc35eaf30, outimage=0x00007fffc35eaf70) const at waifu2x.cpp:457:25 frame #5: 0x000000000084cd45 waifu2x-ncnn-vulkan`proc(args=0x00007fffffffdb70) at main.cpp:281:18 frame #6: 0x00000008008fd1c9 libthr.so.3`thread_start(curthread=0x0000000807874300) at thr_create.c:292:16 Modified: head/graphics/waifu2x-ncnn-vulkan/Makefile (contents, props changed) head/graphics/waifu2x-ncnn-vulkan/distinfo (contents, props changed) Modified: head/graphics/waifu2x-ncnn-vulkan/Makefile ============================================================================== --- head/graphics/waifu2x-ncnn-vulkan/Makefile Sat Aug 8 20:47:12 2020 (r544525) +++ head/graphics/waifu2x-ncnn-vulkan/Makefile Sat Aug 8 20:50:12 2020 (r544526) @@ -2,7 +2,7 @@ PORTNAME= waifu2x-ncnn-vulkan DISTVERSION= 20200606 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= graphics MAINTAINER= jbeich@FreeBSD.org @@ -12,17 +12,16 @@ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= glslangValidator:devel/glslang \ - vulkan-headers>0:devel/vulkan-headers \ - ${LOCALBASE}/lib/libncnn.a:misc/ncnn + vulkan-headers>0:devel/vulkan-headers LIB_DEPENDS= libwebp.so:graphics/webp \ libvulkan.so:graphics/vulkan-loader USES= cmake compiler:${OPENMP}c++11-lib localbase:ldflags USE_GITHUB= yes GH_ACCOUNT= nihui +GH_TUPLE= KhronosGroup:glslang:8.13.3743-39-gd39b8afc:glslang/src/ncnn/glslang \ + Tencent:ncnn:20200413-97-g13c59d9:ncnn/src/ncnn CMAKE_SOURCE_PATH= ${WRKSRC}/src -CFLAGS+= -isystem${LOCALBASE}/include/ncnn -LDFLAGS+= -lglslang -lHLSL -lOSDependent -lOGLCompiler -lSPIRV -lpthread # from ncnn PLIST_FILES= bin/${PORTNAME} PORTDATA= * @@ -31,15 +30,8 @@ PORTDATA= * OPENMP= gcc- .endif -pre-configure: - @if ${GREP} -q 'NCNN_VULKAN 0' ${LOCALBASE}/include/ncnn/platform.h; then \ - ${ECHO_MSG} "${PKGBASE} requires ncnn built with VULKAN option enabled."; \ - return 1; \ - fi - post-extract: @${ECHO_CMD} >${WRKSRC}/src/libwebp/CMakeLists.txt - @${ECHO_CMD} >${WRKSRC}/src/ncnn/CMakeLists.txt post-patch: @${REINPLACE_CMD} -e '/PATHSTR/s,models-,${DATADIR}/&,' \ Modified: head/graphics/waifu2x-ncnn-vulkan/distinfo ============================================================================== --- head/graphics/waifu2x-ncnn-vulkan/distinfo Sat Aug 8 20:47:12 2020 (r544525) +++ head/graphics/waifu2x-ncnn-vulkan/distinfo Sat Aug 8 20:50:12 2020 (r544526) @@ -1,3 +1,7 @@ TIMESTAMP = 1591444867 SHA256 (nihui-waifu2x-ncnn-vulkan-20200606_GH0.tar.gz) = 744a71279dd670eae432dad345302ef1e197cb6f64099a5a937ca545647d5afd SIZE (nihui-waifu2x-ncnn-vulkan-20200606_GH0.tar.gz) = 34067785 +SHA256 (KhronosGroup-glslang-8.13.3743-39-gd39b8afc_GH0.tar.gz) = 5785e8d5fc2f77a1b0643910480c76fc049bc3e7592c6cd9df7fc8c1864af344 +SIZE (KhronosGroup-glslang-8.13.3743-39-gd39b8afc_GH0.tar.gz) = 3203976 +SHA256 (Tencent-ncnn-20200413-97-g13c59d9_GH0.tar.gz) = b336a04546f148928b7507155c1e3db829a1ec93e062e2d44f158c685ccfae53 +SIZE (Tencent-ncnn-20200413-97-g13c59d9_GH0.tar.gz) = 10606993