From nobody Sun Feb 12 17:57:35 2023 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PFFYW39dfz3qSDW; Sun, 12 Feb 2023 17:57:35 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PFFYW2K2dz3m6g; Sun, 12 Feb 2023 17:57:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676224655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rNByRd8YXrOcO7aM4tCyIc3pBM8XoLARBxVRO/IZYj8=; b=VSu2Hw2qBa4z0rwr1qTmiH2bYg2xKUTYbNJkeqQWz4Jt9AGLOxzX3IgmjpyjrYgy5WVyWH OhZYeEymlI+f8mlO082tafZCH9JAj8V6OvSt3uiajrfU23+G9Er33FcW/RyV5qm1xeXJ+V JJzDJzfRW5s/PMOGmTNxIWGv/V4I/2X7MWHs0k8mLD0VCLL9QGeCUiMKi94R4/BK8c3UZp Dn9LwE4jBr1nxxZ0Cn6JDaRkFKPRG5bL4wiwMUQDw7kzyMG5asl+pQEu6wCekxrfam2jX/ MaRixZ560Gd71se95R7ZLhbTfetaxGjDWjWmZ3BOfvEbqe2Lmk5VybEWu7uKhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676224655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rNByRd8YXrOcO7aM4tCyIc3pBM8XoLARBxVRO/IZYj8=; b=FxiaA8wqow0C3P5qRFPvsegtjXaxdRJkkYYBjL9IcnwyO/m4qnSCK5+PFQQCLB3a/40KgQ 90+bZkQd92i/PNnzaFOPACLbej7fbzQqtjgTd2KhV6zcEmy6TrTdGb8lsp3k3AhNmK1zWl +udTF4rMy3Ll/SPJ/Ptpfjt7F7QcdIz+MdyrHBv+NwBatmmzyVfNKtLhJMeGA8Z3ujIFlV TpbNFtGaoSiInw3hikEAeNKWXoyfQ4KRB6lzVOB1gPWhPyhJA2v7nakGfmSlDiXVnPRcgM I8/mzybzy1r7TbGiOI29zCIfAK2KaYKtL5ozu90X5vhbgnCrVOAlw2SPpYibKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676224655; a=rsa-sha256; cv=none; b=IQovINR/pJR5I/LGbOSG15gPhL4oKTZxavpWZNXAcUGmb6OMn3hiFCE5FrChLYDM9KfJ+U ao95ZHMQq92yWvyHeSpB4qgC9LULM8nSz8poYceYkjJClCipT6oJ+MuAlaJ3FoA8GNk+bQ FbizWTNYXlvGP2CZki1X9yl+8O+k46yJA1nNYzW4e5+4TUg8HiLyUUd9q2Wh7Z2Xku0OtM PKCoJ5xsBYmfPuEoq5C3DBZWp7HXXpLJ/VgUFFdujlL2ZamZTLdawpYbpY1i9oinv71+i1 +UtCSlloCKf0oYgS7QpjxXPsczcBZJ3qizm9BgtaezmAussEQEfIMHC8he/jMA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PFFYW1MRGzn5q; Sun, 12 Feb 2023 17:57:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31CHvZkR025476; Sun, 12 Feb 2023 17:57:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31CHvZXk025475; Sun, 12 Feb 2023 17:57:35 GMT (envelope-from git) Date: Sun, 12 Feb 2023 17:57:35 GMT Message-Id: <202302121757.31CHvZXk025475@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Piotr Kubaj Subject: git: 85f7d7a34bad - 2023Q1 - graphics/bgfx: fix build on powerpc64* and probably riscv64 List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-branches@freebsd.org X-BeenThere: dev-commits-ports-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/2023Q1 X-Git-Reftype: branch X-Git-Commit: 85f7d7a34bad0da5785708b8c7932375dc3cf060 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch 2023Q1 has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=85f7d7a34bad0da5785708b8c7932375dc3cf060 commit 85f7d7a34bad0da5785708b8c7932375dc3cf060 Author: Piotr Kubaj AuthorDate: 2023-02-07 16:15:30 +0000 Commit: Piotr Kubaj CommitDate: 2023-02-12 17:57:29 +0000 graphics/bgfx: fix build on powerpc64* and probably riscv64 /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:173:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xcccccccc) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:174:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xcdcdcdcd) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:175:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xdddddddd) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/graphics/bgfx/work/bgfx.cmake-1.118.8398-370/bimg/3rdparty/nvtt/nvcore/debug.h:176:10: error: cast from pointer to smaller type 'uint32' (aka 'unsigned int') loses information if (reinterpret_cast(ptr) == 0xffffffff) return false; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (cherry picked from commit 32cf9412c58d339066e091ad088126e1236b52dd) --- graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h b/graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h new file mode 100644 index 000000000000..b017509dac6f --- /dev/null +++ b/graphics/bgfx/files/patch-bimg_3rdparty_nvtt_nvcore_debug.h @@ -0,0 +1,11 @@ +--- bimg/3rdparty/nvtt/nvcore/debug.h.orig 2023-02-07 16:06:32 UTC ++++ bimg/3rdparty/nvtt/nvcore/debug.h +@@ -165,7 +165,7 @@ namespace nv + namespace nv + { + inline bool isValidPtr(const void * ptr) { +- #if NV_CPU_X86_64 || NV_CPU_AARCH64 ++ #if defined(__LP64__) + if (ptr == NULL) return true; + if (reinterpret_cast(ptr) < 0x10000ULL) return false; + if (reinterpret_cast(ptr) >= 0x000007FFFFFEFFFFULL) return false;