From nobody Sat Nov 27 23:40:31 2021 X-Original-To: dev-commits-ports-all@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 B9E6C18B3BF1; Sat, 27 Nov 2021 23:40:31 +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 4J1p5C2d48z3kMH; Sat, 27 Nov 2021 23:40:31 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 35271241F7; Sat, 27 Nov 2021 23:40:31 +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 1ARNeV72063958; Sat, 27 Nov 2021 23:40:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ARNeVAZ063957; Sat, 27 Nov 2021 23:40:31 GMT (envelope-from git) Date: Sat, 27 Nov 2021 23:40:31 GMT Message-Id: <202111272340.1ARNeVAZ063957@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: ff9778994a93 - main - emulators/yuzu: update to s20211127 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ff9778994a93afde54a1f0c47960146e9599e58a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638056431; 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=iIa/3mORvDnIdhyUnzH6GpKgOOEVfIm2WQb0N7bmuCM=; b=rJEtHZN0s0UQJDWdEom1MpYzU8AMAAIq/IbLnktnlkW+0jGGPCaMvcwTw/JfM9bNW2KhE5 BEgWC3b5PtPKGc8eee9yYRPjTtzb5WtspGIy1ecS0Qd+ibPSkOeFNPux2NS/vOzeklDrYB uxBTREGpbLhB2/vJ6o3AJ5CxEiiGhkAWktGhMOVOThm5mR/yxyZ/WCcYXRuHiaBCfeJ0OE TDbBR84t97B/D8bv7GgXed7yNZGP4URWgGfu00wKmlS2E/btzo4oEjbxbXwDhXX1bW0an0 YrBj7GIfb4iLNJy1Yhqu46dSQ1A0g5g9Vbg5OlHjdtF+Bd7uQ3Y91FGJEcRnQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638056431; a=rsa-sha256; cv=none; b=NkvEsP2BzXIT2dgjkCJwjJ1rhDydy4j/AhcHmIyOlsTgekZSmxyhnJYIE+W7GyfMjf2DYB kQAOGqxfYnDbOenGQluHgELRfY50yZIiAjvxlFRj93vHLocu809HbFRkHe/NxeZJcjyVNH LKda132jBVTTemV7xCr9AGm+RkXMLKJFk8iy18aRJr7KdNd+GWiJgnoZWNbCKyGokpqXqZ Og21KdBmEkH+OPhcWUETWBsZMv3epdtnSNzjQ1Gu1gGA/qIl0fLjVHwerPElI4+WeTHNpd 7gvLMJ/L73/KFwHa0PkGNdtuTcRhA6NdQjv5UDAQw0WJG8Mt3Ah4ECV+YKjI9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=ff9778994a93afde54a1f0c47960146e9599e58a commit ff9778994a93afde54a1f0c47960146e9599e58a Author: Jan Beich AuthorDate: 2021-11-27 10:52:08 +0000 Commit: Jan Beich CommitDate: 2021-11-27 23:40:10 +0000 emulators/yuzu: update to s20211127 Changes: https://github.com/yuzu-emu/yuzu/compare/157985f55...564f10527 --- emulators/yuzu/Makefile | 4 +- emulators/yuzu/distinfo | 6 +-- emulators/yuzu/files/patch-sdl2 | 90 +++++++++++++---------------------------- 3 files changed, 33 insertions(+), 67 deletions(-) diff --git a/emulators/yuzu/Makefile b/emulators/yuzu/Makefile index 8fe242376cb7..21f6acafd8f4 100644 --- a/emulators/yuzu/Makefile +++ b/emulators/yuzu/Makefile @@ -1,5 +1,5 @@ PORTNAME= yuzu -PORTVERSION= s20211126 +PORTVERSION= s20211127 PORTREVISION?= 0 CATEGORIES= emulators @@ -33,7 +33,7 @@ LIB_DEPENDS= liblz4.so:archivers/liblz4 \ USE_GITHUB= yes GH_ACCOUNT= yuzu-emu -GH_TAGNAME= 157985f55 +GH_TAGNAME= 564f10527 GH_TUPLE= yuzu-emu:mbedtls:v2.16.9-115-g8c88150ca:mbedtls/externals/mbedtls \ KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-32-ga3fdfe8:SPIRV_Headers/externals/sirit/externals/SPIRV-Headers \ KhronosGroup:Vulkan-Headers:v1.2.180:Vulkan_Headers/externals/Vulkan-Headers \ diff --git a/emulators/yuzu/distinfo b/emulators/yuzu/distinfo index 0d7e79bc6fa1..17a82d37c8e2 100644 --- a/emulators/yuzu/distinfo +++ b/emulators/yuzu/distinfo @@ -1,6 +1,6 @@ -TIMESTAMP = 1637969920 -SHA256 (yuzu-emu-yuzu-s20211126-157985f55_GH0.tar.gz) = b6567e3c21ddca94df29e3d5e978a26ff038a9e2a34f4a5108880c6607aebdb4 -SIZE (yuzu-emu-yuzu-s20211126-157985f55_GH0.tar.gz) = 4398693 +TIMESTAMP = 1638010328 +SHA256 (yuzu-emu-yuzu-s20211127-564f10527_GH0.tar.gz) = 55c1a4ff15460bb5f455d8d7a41e5e09ecb1471c79afcaac8e87a45b0cbd951e +SIZE (yuzu-emu-yuzu-s20211127-564f10527_GH0.tar.gz) = 4408527 SHA256 (yuzu-emu-mbedtls-v2.16.9-115-g8c88150ca_GH0.tar.gz) = 8cd6d075b4da0ad5fb995eb37390e2e6088be8d41ab1cdfc7e7e4256bd991450 SIZE (yuzu-emu-mbedtls-v2.16.9-115-g8c88150ca_GH0.tar.gz) = 2679189 SHA256 (KhronosGroup-SPIRV-Headers-1.5.4.raytracing.fixed-32-ga3fdfe8_GH0.tar.gz) = bd629d6296dd374eb2aeff923c75895ba0f3ce6448dad89763930e65b954e0cb diff --git a/emulators/yuzu/files/patch-sdl2 b/emulators/yuzu/files/patch-sdl2 index 37341e782041..2eb05a0a0049 100644 --- a/emulators/yuzu/files/patch-sdl2 +++ b/emulators/yuzu/files/patch-sdl2 @@ -19,9 +19,9 @@ CMake Error at CMakeLists.txt:397 (find_package): # Some installations don't set SDL2_LIBRARIES if("${SDL2_LIBRARIES}" STREQUAL "") ---- src/input_common/sdl/sdl_impl.cpp.orig 2021-09-18 00:25:51 UTC -+++ src/input_common/sdl/sdl_impl.cpp -@@ -64,6 +64,7 @@ class SDLJoystick { (public) +--- src/input_common/drivers/sdl_driver.cpp.orig 2021-11-27 10:52:08 UTC ++++ src/input_common/drivers/sdl_driver.cpp +@@ -39,6 +39,7 @@ class SDLJoystick { (public) } void EnableMotion() { @@ -29,38 +29,39 @@ CMake Error at CMakeLists.txt:397 (find_package): if (sdl_controller) { SDL_GameController* controller = sdl_controller.get(); if (SDL_GameControllerHasSensor(controller, SDL_SENSOR_ACCEL) && !has_accel) { -@@ -75,6 +76,7 @@ class SDLJoystick { (public) +@@ -50,6 +51,7 @@ class SDLJoystick { (public) has_gyro = true; } } +#endif } - void SetButton(int button, bool value) { -@@ -88,6 +90,7 @@ class SDLJoystick { (public) - } + bool HasGyro() const { +@@ -60,6 +62,7 @@ class SDLJoystick { (public) + return has_accel; } +#if SDL_VERSION_ATLEAST(2,0,14) - void SetMotion(SDL_ControllerSensorEvent event) { + bool UpdateMotion(SDL_ControllerSensorEvent event) { constexpr float gravity_constant = 9.80665f; std::lock_guard lock{mutex}; -@@ -115,6 +118,7 @@ class SDLJoystick { (public) - motion.UpdateRotation(time_difference * 1000); - motion.UpdateOrientation(time_difference * 1000); +@@ -87,6 +90,7 @@ class SDLJoystick { (public) + motion.delta_timestamp = time_difference * 1000; + return true; } +#endif - bool GetButton(int button) const { - std::lock_guard lock{mutex}; -@@ -429,12 +433,14 @@ void SDLState::HandleGameControllerEvent(const SDL_Eve + BasicMotion GetMotion() { + return motion; +@@ -362,6 +366,7 @@ void SDLDriver::HandleGameControllerEvent(const SDL_Ev } break; } +#if SDL_VERSION_ATLEAST(2,0,14) case SDL_CONTROLLERSENSORUPDATE: { if (auto joystick = GetSDLJoystickBySDLID(event.csensor.which)) { - joystick->SetMotion(event.csensor); + if (joystick->UpdateMotion(event.csensor)) { +@@ -371,6 +376,7 @@ void SDLDriver::HandleGameControllerEvent(const SDL_Ev } break; } @@ -68,50 +69,25 @@ CMake Error at CMakeLists.txt:397 (find_package): case SDL_JOYDEVICEREMOVED: LOG_DEBUG(Input, "Controller removed with Instance_ID {}", event.jdevice.which); CloseJoystick(SDL_JoystickFromInstanceID(event.jdevice.which)); -@@ -890,20 +896,26 @@ SDLState::SDLState() { - RegisterFactory("sdl", motion_factory); +@@ -392,7 +398,7 @@ SDLDriver::SDLDriver(const std::string& input_engine_) if (!Settings::values.enable_raw_input) { -+#if SDL_VERSION_ATLEAST(2,0,14) // Disable raw input. When enabled this setting causes SDL to die when a web applet opens - SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); -+#endif +- SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); ++ SDL_SetHint("SDL_JOYSTICK_RAWINPUT", "0"); } + // Prevent SDL from adding undesired axis +@@ -400,7 +406,7 @@ SDLDriver::SDLDriver(const std::string& input_engine_) + // Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1"); -+#if SDL_VERSION_ATLEAST(2,0,16) - SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); -+#endif +- SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1"); ++ SDL_SetHint("SDL_JOYSTICK_HIDAPI_PS5_RUMBLE", "1"); + SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1"); -+#if SDL_VERSION_ATLEAST(2,0,16) - // Tell SDL2 to use the hidapi driver. This will allow joycons to be detected as a - // GameController and not a generic one - SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS, "1"); - - // Turn off Pro controller home led - SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED, "0"); -+#endif - - // If the frontend is going to manage the event loop, then we don't start one here - start_thread = SDL_WasInit(SDL_INIT_JOYSTICK) == 0; -@@ -1110,6 +1122,7 @@ Common::ParamPackage SDLEventToMotionParamPackage(SDLS - } - break; - } -+#if SDL_VERSION_ATLEAST(2,0,14) - case SDL_CONTROLLERSENSORUPDATE: { - bool is_motion_shaking = false; - constexpr float gyro_threshold = 5.0f; -@@ -1139,6 +1152,7 @@ Common::ParamPackage SDLEventToMotionParamPackage(SDLS - } - break; - } -+#endif - } - return {}; - } -@@ -1244,6 +1258,7 @@ ButtonBindings SDLState::GetNintendoButtonBinding( + // Use hidapi driver for joycons. This will allow joycons to be detected as a GameController and +@@ -670,6 +676,7 @@ ButtonBindings SDLDriver::GetNintendoButtonBinding( auto sl_button = SDL_CONTROLLER_BUTTON_LEFTSHOULDER; auto sr_button = SDL_CONTROLLER_BUTTON_RIGHTSHOULDER; @@ -119,7 +95,7 @@ CMake Error at CMakeLists.txt:397 (find_package): if (joystick->IsJoyconLeft()) { sl_button = SDL_CONTROLLER_BUTTON_PADDLE2; sr_button = SDL_CONTROLLER_BUTTON_PADDLE4; -@@ -1252,6 +1267,7 @@ ButtonBindings SDLState::GetNintendoButtonBinding( +@@ -678,6 +685,7 @@ ButtonBindings SDLDriver::GetNintendoButtonBinding( sl_button = SDL_CONTROLLER_BUTTON_PADDLE3; sr_button = SDL_CONTROLLER_BUTTON_PADDLE1; } @@ -127,13 +103,3 @@ CMake Error at CMakeLists.txt:397 (find_package): return { std::pair{Settings::NativeButton::A, SDL_CONTROLLER_BUTTON_A}, -@@ -1552,7 +1568,9 @@ class SDLMotionPoller final : public SDLPoller { (publ - [[fallthrough]]; - case SDL_JOYBUTTONUP: - case SDL_JOYHATMOTION: -+#if SDL_VERSION_ATLEAST(2,0,14) - case SDL_CONTROLLERSENSORUPDATE: -+#endif - return {SDLEventToMotionParamPackage(state, event)}; - } - return std::nullopt;