From nobody Thu Jun 01 19:48:18 2023 X-Original-To: dev-commits-ports-main@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 4QXGrz1tCkz4Z1fF; Thu, 1 Jun 2023 19:48:19 +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 4QXGrz1Ngzz41by; Thu, 1 Jun 2023 19:48:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685648899; 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=cokbv5x+oZP209aMGocKpBcJ9CY7NoJPoIAUM7aW9LQ=; b=VTfsasrPPUjhMfeD29uvpHcZvp/DKYlxBKhJXiLT9j7Yo/kbyL/sNXI8/2SOXsgqmwFF/6 oVDLmnUfZ4nNHf68RUvWrOUss9m1ymwyuDwdhtBcsxWTKEYOUakMCpHsWdMwgkaCV0dzp6 T9KaoGGUKWBk+/MhwDw6qSuKf4akt2e8RZGcuOrTiaAm9O5IhcvZVI06FrmaL6budVQszL JK8gAM6HdTOQTQ2sDTbybbmVDCJsloU/mIWIM2FH/r+F6m03vJwFDR4HkK2Ghbdg53hvac ikBGVN0TGCA/z51qyVXg9o4tUqilfqRbjzcXEKA+T+6oNjNrWZv6Mr+n2A8KdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685648899; 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=cokbv5x+oZP209aMGocKpBcJ9CY7NoJPoIAUM7aW9LQ=; b=oK2UgZfzAw9YFCzIuWgTMGMbEuU7TSu/b/SLklFvgYFDVps7Ii1O+9CFLBfe+l8gchQzO1 J4BpAUGY3bh6yFSqh0Vm2LqPMxVnlJ3UercqBCnPXeQvXemo3TyX9M0vmCqJOmqzg7vXto R5iAiZAF+lMMH2wi7Q0rbQVwjTT7hGMSe8/VGzsO7Bh8dqSBx1MsZF0vgwOcUEhjzpq6VX XGklVlxxCQeoDUBO2sbQ2YKtpVkBr2YMRwll2wuSRR2fwxPkTbd3Zy+tsY9i5A2jPdI6FA Po6oZk1GH++brLgEll4duuK2ezrXdfWCGUkQHctLKZb4RBFlpuEqvfLueEpBqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685648899; a=rsa-sha256; cv=none; b=Bh42Ds0clHKvoBTRqnocK/15N7O9rl3FySpQONoSsbUFroXbcfedg2CW2dPHg8i5fJsQyv J7+Z8JNevleL1m0z+F2WHDGahu7u/VRMIjoc9hCCVWtEP8DpZuf5xYr755N1vFVHB4FGrP N2XgS6dOwhnFtGSXRoJLMA/fMz3gGnmNLq9wu87FtW7JtdLATiuw978ZI/mZsaXZxByMQC lILsMikTnNSb+YeVqinNXZ3S81jf8Cw7B16GT4ID0xz28cWlH7l7z9Z3CIiqFjLBCxw4UJ eUUlUyS/Uo3ztZKBUVQPPnKkP0TxHQnuqPROUB3g1TeJptL7XnHU3iby7QViHA== 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 4QXGrz0TvZzVHj; Thu, 1 Jun 2023 19:48:19 +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 351JmINL030948; Thu, 1 Jun 2023 19:48:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 351JmIuB030947; Thu, 1 Jun 2023 19:48:18 GMT (envelope-from git) Date: Thu, 1 Jun 2023 19:48:18 GMT Message-Id: <202306011948.351JmIuB030947@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 1a1ef0e9a27a - main - =?utf-8?Q?graphics/filament:=20Update=201.36.0=20=E2=86=92=201.37.0?= List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1a1ef0e9a27a69c0a0467d0fa6bc7968b5b98658 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=1a1ef0e9a27a69c0a0467d0fa6bc7968b5b98658 commit 1a1ef0e9a27a69c0a0467d0fa6bc7968b5b98658 Author: Yuri Victorovich AuthorDate: 2023-06-01 17:30:48 +0000 Commit: Yuri Victorovich CommitDate: 2023-06-01 19:48:12 +0000 graphics/filament: Update 1.36.0 → 1.37.0 Reported by: portscout --- graphics/filament/Makefile | 2 +- graphics/filament/distinfo | 6 +-- .../patch-filament_backend_src_PlatformFactory.cpp | 25 ++++------ ..._platform_PlatformVulkanAndroidLinuxWindows.cpp | 54 ++++++++++++++++++++++ .../filament/files/patch-libs_utils_CMakeLists.txt | 6 +-- 5 files changed, 69 insertions(+), 24 deletions(-) diff --git a/graphics/filament/Makefile b/graphics/filament/Makefile index f45855a48cb3..c9e5453f2e31 100644 --- a/graphics/filament/Makefile +++ b/graphics/filament/Makefile @@ -1,6 +1,6 @@ PORTNAME= filament DISTVERSIONPREFIX= v -DISTVERSION= 1.36.0 +DISTVERSION= 1.37.0 CATEGORIES= graphics MAINTAINER= yuri@FreeBSD.org diff --git a/graphics/filament/distinfo b/graphics/filament/distinfo index afd530df2972..fbdc1556c4bc 100644 --- a/graphics/filament/distinfo +++ b/graphics/filament/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1684721878 -SHA256 (google-filament-v1.36.0_GH0.tar.gz) = 7c6b2a5c2b2d14d532d6c43ae3cb78754cfce5c739b9f9ca6b5e1af276b12573 -SIZE (google-filament-v1.36.0_GH0.tar.gz) = 500402413 +TIMESTAMP = 1685637225 +SHA256 (google-filament-v1.37.0_GH0.tar.gz) = 7d9504b19615975bf834c1e0225bc818145e16e0b59336938756f07d0906d8fb +SIZE (google-filament-v1.37.0_GH0.tar.gz) = 500505901 diff --git a/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp b/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp index f1497e65ba5d..d9c7385d548c 100644 --- a/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp +++ b/graphics/filament/files/patch-filament_backend_src_PlatformFactory.cpp @@ -1,24 +1,15 @@ ---- filament/backend/src/PlatformFactory.cpp.orig 2023-01-26 04:37:03 UTC +--- filament/backend/src/PlatformFactory.cpp.orig 2023-05-30 23:22:31 UTC +++ filament/backend/src/PlatformFactory.cpp -@@ -41,7 +41,7 @@ - #if defined(FILAMENT_DRIVER_SUPPORTS_VULKAN) - #include "vulkan/PlatformVkCocoa.h" +@@ -32,7 +32,7 @@ + #if defined(FILAMENT_SUPPORTS_OPENGL) && !defined(FILAMENT_USE_EXTERNAL_GLES3) && !defined(FILAMENT_USE_SWIFTSHADER) + #include #endif -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) - #if defined(FILAMENT_SUPPORTS_GGP) - #include "vulkan/PlatformVkLinuxGGP.h" - #elif defined(FILAMENT_SUPPORTS_WAYLAND) -@@ -118,7 +118,7 @@ Platform* PlatformFactory::create(Backend* backend) no - return new PlatformVkAndroid(); - #elif defined(IOS) - return new PlatformVkCocoaTouch(); -- #elif defined(__linux__) -+ #elif defined(__linux__) || defined(__FreeBSD__) - #if defined(FILAMENT_SUPPORTS_GGP) - return new PlatformVkLinuxGGP(); - #elif defined(FILAMENT_SUPPORTS_WAYLAND) -@@ -155,7 +155,7 @@ Platform* PlatformFactory::create(Backend* backend) no + #if defined(FILAMENT_SUPPORTS_X11) + #if defined(FILAMENT_SUPPORTS_OPENGL) && !defined(FILAMENT_USE_EXTERNAL_GLES3) && !defined(FILAMENT_USE_SWIFTSHADER) + #include "backend/platforms/PlatformGLX.h" +@@ -120,7 +120,7 @@ Platform* PlatformFactory::create(Backend* backend) no return new PlatformCocoaTouchGL(); #elif defined(__APPLE__) return new PlatformCocoaGL(); diff --git a/graphics/filament/files/patch-filament_backend_src_vulkan_platform_PlatformVulkanAndroidLinuxWindows.cpp b/graphics/filament/files/patch-filament_backend_src_vulkan_platform_PlatformVulkanAndroidLinuxWindows.cpp new file mode 100644 index 000000000000..29208b26ecfd --- /dev/null +++ b/graphics/filament/files/patch-filament_backend_src_vulkan_platform_PlatformVulkanAndroidLinuxWindows.cpp @@ -0,0 +1,54 @@ +- workaround for https://github.com/google/filament/issues/6861 + +--- filament/backend/src/vulkan/platform/PlatformVulkanAndroidLinuxWindows.cpp.orig 2023-06-01 16:53:44 UTC ++++ filament/backend/src/vulkan/platform/PlatformVulkanAndroidLinuxWindows.cpp +@@ -38,7 +38,7 @@ + uint32_t height; + } wl; + }// anonymous namespace +-#elif defined(__linux__) && defined(FILAMENT_SUPPORTS_X11) ++#elif (defined(__linux__) || defined(__FreeBSD__)) && defined(FILAMENT_SUPPORTS_X11) + #include + #if defined(FILAMENT_SUPPORTS_XCB) + #include +@@ -83,11 +83,11 @@ Driver* PlatformVulkan::createDriver(void* const share + static const char* requiredInstanceExtensions[] = { + #if defined(__ANDROID__) + "VK_KHR_android_surface", +- #elif defined(__linux__) && defined(FILAMENT_SUPPORTS_GGP) ++ #elif (defined(__linux__) || defined(__FreeBSD__)) && defined(FILAMENT_SUPPORTS_GGP) + VK_GGP_STREAM_DESCRIPTOR_SURFACE_EXTENSION_NAME, + #elif defined(__linux__) && defined(FILAMENT_SUPPORTS_WAYLAND) + "VK_KHR_wayland_surface", +- #elif defined(__linux__) && defined(FILAMENT_SUPPORTS_X11) ++ #elif (defined(__linux__) || defined(__FreeBSD__)) && defined(FILAMENT_SUPPORTS_X11) + #if defined(FILAMENT_SUPPORTS_XCB) + "VK_KHR_xcb_surface", + #endif +@@ -121,7 +121,7 @@ PlatformVulkan::SurfaceBundle PlatformVulkan::createVk + VkResult const result = vkCreateAndroidSurfaceKHR(instance, &createInfo, VKALLOC, + (VkSurfaceKHR*) &bundle.surface); + ASSERT_POSTCONDITION(result == VK_SUCCESS, "vkCreateAndroidSurfaceKHR error."); +- #elif defined(__linux__) && defined(FILAMENT_SUPPORTS_GGP) ++ #elif (defined(__linux__) || defined(__FreeBSD__)) && defined(FILAMENT_SUPPORTS_GGP) + VkStreamDescriptorSurfaceCreateInfoGGP const surface_create_info = { + .sType = VK_STRUCTURE_TYPE_STREAM_DESCRIPTOR_SURFACE_CREATE_INFO_GGP, + .streamDescriptor = kGgpPrimaryStreamDescriptor, +@@ -135,7 +135,7 @@ PlatformVulkan::SurfaceBundle PlatformVulkan::createVk + VkResult const result = fpCreateStreamDescriptorSurfaceGGP(instance, &surface_create_info, + nullptr, (VkSurfaceKHR*) &bundle.surface); + ASSERT_POSTCONDITION(result == VK_SUCCESS, "vkCreateStreamDescriptorSurfaceGGP error."); +- #elif defined(__linux__) && defined(FILAMENT_SUPPORTS_WAYLAND) ++ #elif (defined(__linux__) || defined(__FreeBSD__)) && defined(FILAMENT_SUPPORTS_WAYLAND) + wl* ptrval = reinterpret_cast(nativeWindow); + bundle.width = ptrval->width; + bundle.height = ptrval->height; +@@ -150,7 +150,7 @@ PlatformVulkan::SurfaceBundle PlatformVulkan::createVk + VkResult const result = vkCreateWaylandSurfaceKHR(instance, &createInfo, VKALLOC, + (VkSurfaceKHR*) &bundle.surface); + ASSERT_POSTCONDITION(result == VK_SUCCESS, "vkCreateWaylandSurfaceKHR error."); +- #elif defined(__linux__) && defined(FILAMENT_SUPPORTS_X11) ++ #elif (defined(__linux__) || defined(__FreeBSD__)) && defined(FILAMENT_SUPPORTS_X11) + if (g_x11_vk.library == nullptr) { + g_x11_vk.library = dlopen(LIBRARY_X11, RTLD_LOCAL | RTLD_NOW); + ASSERT_PRECONDITION(g_x11_vk.library, "Unable to open X11 library."); diff --git a/graphics/filament/files/patch-libs_utils_CMakeLists.txt b/graphics/filament/files/patch-libs_utils_CMakeLists.txt index 2deb894bd724..4e45fbc7aa4d 100644 --- a/graphics/filament/files/patch-libs_utils_CMakeLists.txt +++ b/graphics/filament/files/patch-libs_utils_CMakeLists.txt @@ -1,7 +1,7 @@ ---- libs/utils/CMakeLists.txt.orig 2022-08-16 18:01:04 UTC +--- libs/utils/CMakeLists.txt.orig 2023-05-30 23:22:31 UTC +++ libs/utils/CMakeLists.txt -@@ -81,8 +81,10 @@ if (ANDROID) - list(APPEND SRCS src/android/ThermalManager.cpp) +@@ -82,8 +82,10 @@ if (ANDROID) + list(APPEND SRCS src/android/Systrace.cpp) endif() if (LINUX OR ANDROID) - list(APPEND SRCS src/linux/Condition.cpp)