Compare commits

...
Author SHA1 Message Date
Just some guy e0df6484dc 2025-08-25 05:24:14 +00:00
Vindicus999 b1efa984fa feat: add solarxr patches 2025-08-24 19:20:52 -04:00
Vindicus999 3fe032fa3b Revert "Default to xrizer"
This reverts commit 46ffc44.
2025-08-24 19:20:28 -04:00
Vindicus999 1c81b7b264 Merge remote-tracking branch 'upstream/master' 2025-08-24 23:20:27 +00:00
Patrick Nicolas 8f8e583eb6 Remove imageviews from xr::swapchain 2025-08-24 21:13:56 +02:00
Patrick Nicolas 05c8de4733 Don't abort on runtime's validation errors 2025-08-24 21:13:16 +02:00
Patrick Nicolas 90fa63a8fb Update vulkan validation layers 2025-08-24 21:05:47 +02:00
Patrick Nicolas 33f343e454 Update gradle 2025-08-24 20:46:11 +02:00
Patrick Nicolas cdd6064f2f Update validation layers 2025-08-24 19:42:06 +02:00
Just some guy 7ce68a0673 2025-08-24 13:59:31 +00:00
Vindicus999 e7e42054d5 Merge branch 'master' into sneed 2025-08-24 09:58:50 -04:00
Vindicus999 ea45e9f91b Revert "Merge branch 'master' of https://github.com/Vindicus999/WiVRn"
This reverts commit 6212dccc2b, reversing
changes made to 80e31b642a.
2025-08-24 09:56:21 -04:00
Vindicus999 6212dccc2b Merge branch 'master' of https://github.com/Vindicus999/WiVRn 2025-08-24 09:54:57 -04:00
Patrick Nicolas d8d623fd7b Fix apk CI 2025-08-24 15:49:24 +02:00
Patrick Nicolas dd7bd8469e Fix shader fragment rate vulkan validation error 2025-08-24 14:22:48 +02:00
Patrick Nicolas 348a5a8313 Add glslang from vulkan tools 2025-08-24 14:22:48 +02:00
Vindicus999 449a5b5201 Remove poo water from default icon 2025-08-23 15:40:01 -04:00
Patrick Nicolas 66b7b1fabb Return image to swapchain after encode is done
Vulkan video encode may use the original image, only mark it as free
once it is done encoding.
2025-08-23 11:07:48 +02:00
Patrick Nicolas aade274777 Search for flatpak Steam before system Steam 2025-08-23 10:27:31 +02:00
Patrick Nicolas b5c94c24a4 Fix crash on connection 2025-08-22 20:20:28 +02:00
Patrick Nicolas 211922ea02 Remove all AUTO options in cmake 2025-08-22 13:42:46 +02:00
Patrick Nicolas 959661c830 Fix const char* comparison 2025-08-21 20:46:49 +02:00
Patrick Nicolas 4a2c83a70d Use variable shading rate if supported by headset 2025-08-21 20:46:49 +02:00
Patrick Nicolas b5e5586ef6 Fix HTC face tracker
The tracker must be created precisely between the session creation and
session begin, or else it would fail when we access it with
XR_RUNTIME_FAILURE.
As it is not possible to recreate one later, disable the destroy and
store the handles in static variables so we can access them later,
behaving as if we were actually destroying and recreating one.
2025-08-20 22:11:43 +02:00
Patrick Nicolas bebd2cd97e Fix incorrect error reported on socket creation 2025-08-20 22:11:43 +02:00
Patrick Nicolas fadec7a7a0 Move generic tracker active status in own class 2025-08-20 22:11:43 +02:00
Patrick Nicolas 87b68aaa7b Prevent negative deltatime in imgui 2025-08-20 22:11:43 +02:00
Patrick Nicolas 1e6d8b5a95 Remove application::path_to_string/string_to_path 2025-08-20 22:11:43 +02:00
Patrick Nicolas 8dd3c75139 Remove xr_extensions from application.h 2025-08-20 22:11:43 +02:00
Patrick Nicolas ec4a95efb2 Remove application::get_xr_extensions() 2025-08-20 22:11:43 +02:00
Patrick Nicolas 1390ade131 Remove application::get_device() 2025-08-20 22:11:43 +02:00
Patrick Nicolas d18d33a615 Remove application::get_physical_device() 2025-08-20 22:11:43 +02:00
Patrick Nicolas 1574f82b8e Remove application::now() 2025-08-20 22:11:43 +02:00
Patrick Nicolas a82ee8c038 Remove application::queue_family_index() 2025-08-20 22:11:43 +02:00
Patrick Nicolas 5c397e125c Don't include application.h in xr/session.cpp 2025-08-20 22:11:43 +02:00
Patrick Nicolas 48c9bf0726 Remove xr.h 2025-08-20 22:11:43 +02:00
Patrick Nicolas cb5a7ad9cd Allow handles to hold the pointer to destructor 2025-08-20 22:11:40 +02:00
Patrick Nicolas ae75d95d7c Fix debug utils not enabled 2025-08-20 22:07:08 +02:00
Patrick Nicolas 68edc66fb7 Move *_supported into xr::system 2025-08-20 22:07:08 +02:00
Patrick Nicolas d2ea30e70f Remove unused variable 2025-08-20 22:07:08 +02:00
Patrick Nicolas 9f80c1da7c Remove body trackers from application.h 2025-08-20 22:07:06 +02:00
Patrick Nicolas 4b8295b7c7 Remove face tracker from application.h 2025-08-19 19:14:10 +02:00
Patrick Nicolas 1e37261cfa Use macros for interaction profile extension names 2025-08-19 19:14:10 +02:00
Patrick Nicolas 0acfe7cd24 Remove hand tracker from application.h 2025-08-19 19:14:10 +02:00
Patrick Nicolas 5f6641c38f load_icons: read files only once 2025-08-19 19:14:10 +02:00
Guillaume Meunier c2f23223a2 Don't trust the file extension when loading icons
Fixes #439
2025-08-18 21:16:08 +02:00
Patola 94aceb3f0f Update pr_BR strings for small GUI activation option change (#460) 2025-08-17 21:18:47 +02:00
Patrick Nicolas bce3e498e8 Fix destruction of textures still in use 2025-08-16 14:15:29 +02:00
Patrick Nicolas b9052c6ebb controller/hand_interaction: fix ODR, race condition 2025-08-16 14:15:29 +02:00
Patrick Nicolas c15de9bf27 Automatically name image/buffer allocations 2025-08-16 14:15:29 +02:00
Patrick Nicolas dc04f7edcc Add utility to write specialization constants 2025-08-16 14:15:29 +02:00
Patrick Nicolas b1d6d50a4a Replace unused frames() method with empty() 2025-08-15 23:40:40 +02:00
Patrick Nicolas 5784cbd4fa remove unused include 2025-08-15 23:28:35 +02:00
Patrick Nicolas 757e0fd97b merge tracking control and its mutex 2025-08-15 23:27:44 +02:00
Patrick Nicolas 31c347475e Cleanup some redundant variables 2025-08-15 23:20:11 +02:00
Patrick Nicolas 6d0cc60626 Use subgroups in distortion shader 2025-08-14 21:02:56 +02:00
Patrick Nicolas 50c44c8422 Add iGPU no-copy for distortion UBO 2025-08-14 17:04:09 +02:00
Patrick Nicolas a5b3178f36 Fix uninitialized data in foveation params 2025-08-14 17:04:09 +02:00
Guillaume Meunier 49ab1af542 Avoid showing the spinner when the predicted display time is close to 0 2025-08-12 20:17:35 +02:00
Patrick Nicolas c7fc144a66 Add simple controller binding for hand interaction 2025-08-12 17:36:17 +02:00
Patrick Nicolas c8b8d798d1 Update fr, it locale 2025-08-12 13:42:49 +02:00
Patrick Nicolas 5e4edc9857 Fix lang issue closing for no reason 2025-08-11 15:56:18 +02:00
Patrick Nicolas 461de7c540 Remove "v" at the beginning of the version 2025-08-11 15:31:23 +02:00
Patrick Nicolas a2e470799e Add --version option 2025-08-11 14:53:32 +02:00
Patrick Nicolas d2191a354e Improve issue template
Add an installation method entry
Recommend file attachments for long entries
2025-08-11 14:45:08 +02:00
Patrick Nicolas 9725ae7fc0 Add an option to disable in-stream GUI 2025-08-11 10:44:44 +02:00
BlackCherryCat e7b218bfb6 Simplify es locale 2025-08-11 09:16:53 +02:00
Patrick Nicolas 93ba9b8367 Add required to libarchive and png dependencies 2025-08-10 23:01:46 +02:00
Patrick Nicolas 30ceab5b30 Forward PATH when starting application in systemd mode 2025-08-10 22:06:59 +02:00
Patrick Nicolas 810c9bd2fa Manage localisation issues from CI 2025-08-10 15:15:13 +02:00
Patrick Nicolas 869911fcd5 pythonize check_messages (merged into check_po) 2025-08-10 15:15:13 +02:00
Patrick Nicolas e744a91488 prepare 25.8 release 2025-08-10 10:48:50 +02:00
Patrick Nicolas e603e30229 Reduce flatpak permissions 2025-08-10 10:21:48 +02:00
Patrick Nicolas 5ccc725ef7 Hide Steam launch options in wizard if empty 2025-08-09 22:47:00 +02:00
Guillaume Meunier 03cfe1c12d Keep the GUI locked to the controller that started repositionning in the lobby 2025-08-09 15:50:48 +02:00
Guillaume Meunier acea81c13f Allow dragging with hand tracking in the app list 2025-08-09 15:44:47 +02:00
Guillaume Meunier 8dcd14b168 Unbreak CI 2025-08-09 15:09:18 +02:00
Guillaume Meunier 45d5d6dd7a Read Linux steam icons 2025-08-09 15:02:28 +02:00
Guillaume Meunier d5ef8c1a85 Added checks and try-catch when attempting to load icons
Fixes #437
2025-08-09 10:12:58 +02:00
Patrick Nicolas b036731b51 Hide Steam info when not needed 2025-08-09 00:07:35 +02:00
Patrick Nicolas e02d115a4e Use PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES 2025-08-09 00:07:35 +02:00
epsypolym 00e979065b Update slovak translation (#436)
* Update slovak translation

- Replaced multiple instances of informal form with formal form, also by extension replaced some cases of gendered form with gender neutral version.
- Fixed a few typos

* additional adjustments to sk locale

- re-added a space i accidentally removed (oops)
- fixed other miscellaneous typos found during 2nd review
- removed instance of word "fičura" - informal slang translation of word "feature" - replaced with "funkcia" - ie: function as direct translation of "feature" doesn't exist
2025-08-08 23:03:55 +02:00
Hüseyin Fahri Uzun c7b7bc6fbd added TR translation 2025-08-08 21:40:35 +02:00
Guillaume Meunier 58b6b9d19f Remove useless newline in fr and it locales 2025-08-08 21:09:39 +02:00
Guillaume Meunier 230e102f36 Only request the app list when the stream is stalled 2025-08-08 20:41:46 +02:00
Guillaume Meunier 963205908f Add spinner when an app is starting 2025-08-08 20:41:46 +02:00
Guillaume Meunier 1b11594c3e Send app list ASAP 2025-08-08 20:41:46 +02:00
Guillaume Meunier 1b78180d73 Send app icons one by one 2025-08-08 20:41:46 +02:00
Patrick Nicolas 669b06e982 typo in translating.md 2025-08-08 20:10:18 +02:00
myghi63 3c82c2db84 Fix welcome translation and file comments 2025-08-08 19:48:32 +02:00
Patrick Nicolas 5d58af95e4 Add note about Lokalize mailing list setting 2025-08-08 18:15:59 +02:00
myghi63 a1bf1de910 Update pt_BR locale (#433) 2025-08-08 17:31:10 +02:00
ჼ 73390c2035 Small fixes in sk translation (#432) 2025-08-08 16:53:42 +02:00
Patrick Nicolas 9c599206d6 Working NVIDIA h264 vulkan video encode!
NVIDIA fails with initalization failed error if no
VkVideoEncodeH264RateControlLayerInfoKHR structure is provided
2025-08-08 16:22:11 +02:00
Patrick Nicolas f91c7222db Fix NVIDIA crash in vulkan video encoder creation 2025-08-08 16:15:49 +02:00
Patrick Nicolas 4f0daa0a63 Don't show wizard on first run if server failed 2025-08-08 14:38:49 +02:00
Patrick Nicolas e0608f0c68 Don't crash if server failed to start 2025-08-08 14:34:42 +02:00
Patrick Nicolas 34036c6b9e Fail if path command does not exist 2025-08-08 14:16:46 +02:00
Patrick Nicolas 19ad856e59 Use VK_KHR_video_maintenance1 2025-08-08 14:06:01 +02:00
Vindicus999 80e31b642a Merge remote-tracking branch 'upstream/master' 2025-08-07 17:17:47 +00:00
Jayden 5097ecef3b added new translation 2025-08-07 17:54:53 +02:00
Patrick Nicolas c6a1f3abc9 Set Lighthouse hand tracking as "conforming" 2025-08-07 09:31:55 +02:00
14 changed files with 196 additions and 278 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ auto_option(WIVRN_USE_X264 "Enable x264 software encoder" AUTO)
auto_option(WIVRN_USE_PIPEWIRE "Enable pipewire backend" AUTO)
auto_option(WIVRN_USE_PULSEAUDIO "Enable pulseaudio backend" AUTO)
set(OVR_COMPAT_SEARCH_PATH "/opt/xrizer:/usr/local/lib/OpenComposite:/usr/lib/OpenComposite:/opt/OpenComposite:/opt/opencomposite"
set(OVR_COMPAT_SEARCH_PATH "/usr/local/lib/OpenComposite:/usr/lib/OpenComposite:/opt/OpenComposite:/opt/opencomposite:/opt/xrizer"
CACHE STRING "List of places to search for the OpenVR compatibility layer, separated by :")
option(WIVRN_FEATURE_DEBUG_GUI "Enable Monado debug GUI" OFF)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 930 B

After

Width:  |  Height:  |  Size: 3.1 KiB

+15 -1
View File
@@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.3'
classpath 'com.android.tools.build:gradle:8.12.1'
}
}
@@ -207,4 +207,18 @@ android {
}
}
}
buildTypes.all { variant ->
sourceSets {
"${variant.name}" {
jniLibs.srcDirs layout.buildDirectory.dir("libs${variant.name.capitalize()}")
}
}
externalNativeBuild{
cmake {
arguments '-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs${variant.name.capitalize()}").get().asFile
}
}
}
}
+6 -9
View File
@@ -159,14 +159,14 @@ khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_THREAD_SAFETY_EXT
endif()
if(USE_ANDROID_VALIDATION_LAYER)
set(VVL_VERSION "1.3.231.1")
set(VVL_VERSION "1.4.321.0")
if(NOT EXISTS ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
if (EXISTS ${CMAKE_SOURCE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
file(CREATE_LINK ${CMAKE_SOURCE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip SYMBOLIC)
else()
file(DOWNLOAD https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases/download/sdk-${VVL_VERSION}/android-binaries-${VVL_VERSION}.zip ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip
EXPECTED_HASH SHA256=eec3a54222d6d33d4f787a13a45c60ac5b9e8d7bf795fc41e4242354a02e34ba)
file(DOWNLOAD https://github.com/KhronosGroup/Vulkan-ValidationLayers/releases/download/vulkan-sdk-${VVL_VERSION}/android-binaries-${VVL_VERSION}.zip ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip
EXPECTED_HASH SHA256=75f2881ba7af0507c8cec13b4bf6c95556c6333485cdb8be41f608fccf762128)
endif()
endif()
@@ -174,12 +174,9 @@ if(USE_ANDROID_VALIDATION_LAYER)
file(ARCHIVE_EXTRACT INPUT ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip DESTINATION ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer)
add_library(vvl1 SHARED IMPORTED)
set_property(TARGET vvl1 PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer/${CMAKE_ANDROID_ARCH_ABI}/libVkLayer_khronos_validation.so)
add_library(vvl2 SHARED IMPORTED)
set_property(TARGET vvl2 PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer/${CMAKE_ANDROID_ARCH_ABI}/libc++_shared.so)
target_link_libraries(wivrn vvl1 vvl2) # Hack to get gradle to package the validation layer in the APK
file(COPY
${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
DESTINATION ${CMAKE_ANDROID_LIB_DIRECTORIES})
endif()
+5 -1
View File
@@ -649,6 +649,7 @@ VkBool32 application::vulkan_debug_report_callback(
}
#ifndef NDEBUG
bool my_error = true;
if (level >= spdlog::level::warn)
{
bool validation_layer_found = false;
@@ -659,10 +660,13 @@ VkBool32 application::vulkan_debug_report_callback(
if (validation_layer_found && i.library != "libVkLayer_khronos_validation.so")
spdlog::log(level, "{:#016x}: {} + {:#x}", i.pc, i.library, i.pc - i.library_base);
if (i.library == "libopenxr_loader.so")
my_error = false;
}
}
if (level >= spdlog::level::err)
if (level >= spdlog::level::err and my_error)
abort();
#endif
-17
View File
@@ -68,24 +68,7 @@ xr::swapchain::swapchain(xr::session & s, vk::raii::Device & device, vk::Format
images_.resize(array.size());
for (uint32_t i = 0; i < array.size(); i++)
{
images_[i].image = array[i].image;
vk::ImageViewCreateInfo iv_create_info{
.image = array[i].image,
.viewType = vk::ImageViewType::e2D,
.format = format,
.components = {},
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = 1,
}};
images_[i].view = vk::raii::ImageView(device, iv_create_info);
}
}
int xr::swapchain::acquire()
-1
View File
@@ -38,7 +38,6 @@ public:
struct image
{
vk::Image image{};
vk::raii::ImageView view = nullptr;
};
private:
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+34 -26
View File
@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn-dashboard package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# Jayden Ha <jayden@jaydenha.uk>, 2025.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-03 18:33+0800\n"
"POT-Creation-Date: 2025-08-07 23:22+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Jayden Ha <jayden@jaydenha.uk>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -83,8 +83,8 @@ msgstr "正在檢查最新版本..."
msgid "No precompiled APK is available for this version."
msgstr "此版本沒有預編譯 APK 可用"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#, kde-format
msgid "ADB is not installed."
msgstr "未安裝 ADB"
@@ -131,7 +131,7 @@ msgstr "重新安裝 WiVRn"
msgid "Install WiVRn"
msgstr "安裝 WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#, kde-format
msgid "Headsets"
msgstr "頭戴式裝置"
@@ -226,39 +226,39 @@ msgstr "配對新的頭戴式裝置"
msgid "Headset statistics"
msgstr "頭戴式裝置統計資訊"
#: dashboard/qml/Main.qml:103
#: dashboard/qml/Main.qml:107
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "伺服器沒有 CAP_SYS_NICE 權限"
#: dashboard/qml/Main.qml:110
#: dashboard/qml/Main.qml:114
#, kde-format
msgid "Fix it"
msgstr "修正"
#: dashboard/qml/Main.qml:119
#: dashboard/qml/Main.qml:123
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "CAP_SYS_NICE 權限將在伺服器重新啟動時生效"
#: dashboard/qml/Main.qml:125
#: dashboard/qml/Main.qml:129
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "立即重新啟動"
#: dashboard/qml/Main.qml:136
#: dashboard/qml/Main.qml:140
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr "NVIDIA 顯示卡至少需要驅動程式版本 565.77,目前版本為 %1"
#: dashboard/qml/Main.qml:142
#: dashboard/qml/Main.qml:146
#, kde-format
msgid "More info"
msgstr "更多資訊"
#: dashboard/qml/Main.qml:150
#: dashboard/qml/Main.qml:154
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -267,75 +267,83 @@ msgstr ""
"AMD 顯示卡請使用 Mesa (radv) 驅動程式\n"
"使用 vaapi 的硬體編碼不適用於 AMDVLK 和 AMDGPU-PRO"
#: dashboard/qml/Main.qml:159
#: dashboard/qml/Main.qml:162
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr "未偵測到 OpenVR 相容性,Steam 遊戲將無法載入 VR。\n"
"請安裝 xrizer 或 OpenComposite"
#: dashboard/qml/Main.qml:171
#, kde-format
msgid "Server failed to start"
msgstr "伺服器啟動失敗"
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "開啟伺服器日誌"
#: dashboard/qml/Main.qml:202
#: dashboard/qml/Main.qml:214
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "運行中"
#: dashboard/qml/Main.qml:217
#: dashboard/qml/Main.qml:229
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "配對中"
#: dashboard/qml/Main.qml:230
#: dashboard/qml/Main.qml:242
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#, kde-format
msgid "Connect by USB"
msgstr "透過 USB 連線"
#: dashboard/qml/Main.qml:249
#: dashboard/qml/Main.qml:261
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr "沒有偵測到頭戴式裝置,或您的頭戴式裝置未啟用開發者模式。"
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:269
#, kde-format
msgid "Disconnect"
msgstr "中斷連線"
#: dashboard/qml/Main.qml:274
#: dashboard/qml/Main.qml:286
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "應用程式"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:307
#, kde-format
msgid "Steam information"
msgstr "Steam 資訊"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:325
#, kde-format
msgid "Wizard"
msgstr "精靈"
#: dashboard/qml/Main.qml:320
#: dashboard/qml/Main.qml:332
#, kde-format
msgid "Install the app"
msgstr "安裝應用程式"
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "設定"
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "疑難排解"
+84 -82
View File
@@ -1,14 +1,14 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# Jayden Ha <jayden@jaydenha.uk>, 2025.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-03 18:33+0800\n"
"POT-Creation-Date: 2025-08-07 23:22+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Jayden Ha <jayden@jaydenha.uk>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -107,31 +107,31 @@ msgstr "在您的電腦上啟動應用程式,或是選擇一個來開始串流
msgid "Start an application on {} or select one to start streaming."
msgstr "在 {} 上啟動應用程式,或是選擇一個來開始串流。"
#: client/scenes/lobby_gui.cpp:512
#: client/scenes/lobby_gui.cpp:522
msgid "Name"
msgstr "名"
#: client/scenes/lobby_gui.cpp:523
#: client/scenes/lobby_gui.cpp:533
msgid "Address"
msgstr "伺服器位址"
#: client/scenes/lobby_gui.cpp:532
#: client/scenes/lobby_gui.cpp:542
msgid "Port"
msgstr "連接埠"
#: client/scenes/lobby_gui.cpp:540
#: client/scenes/lobby_gui.cpp:550
msgid "TCP only"
msgstr "僅限 TCP"
#: client/scenes/lobby_gui.cpp:547
#: client/scenes/lobby_gui.cpp:557
msgid "Cancel"
msgstr "取消"
#: client/scenes/lobby_gui.cpp:561
#: client/scenes/lobby_gui.cpp:571
msgid "Save"
msgstr "儲存"
#: client/scenes/lobby_gui.cpp:614
#: client/scenes/lobby_gui.cpp:624
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -139,32 +139,32 @@ msgstr ""
"在您的區域網路中啟動\n"
"WiVRn 伺服器"
#: client/scenes/lobby_gui.cpp:646
#: client/scenes/lobby_gui.cpp:656
msgid "Autoconnect"
msgstr "自動連線"
#: client/scenes/lobby_gui.cpp:672
#: client/scenes/lobby_gui.cpp:682
msgid "Connect"
msgstr "連線"
#: client/scenes/lobby_gui.cpp:682 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "伺服器版本不相容"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:694
msgid "Server not available"
msgstr "無法使用伺服器"
#: client/scenes/lobby_gui.cpp:770
#: client/scenes/lobby_gui.cpp:780
msgid "Refresh rate"
msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:770 client/scenes/lobby_gui.cpp:772
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自動"
#: client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:789
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -172,59 +172,59 @@ msgstr ""
"根據測量的應用程式效能選擇刷新率。\n"
"變更時可能會造成閃爍。"
#: client/scenes/lobby_gui.cpp:796
#: client/scenes/lobby_gui.cpp:806
msgid "Minimum refresh rate"
msgstr "最低刷新率"
#: client/scenes/lobby_gui.cpp:819
#: client/scenes/lobby_gui.cpp:829
msgid "Resolution scale"
msgstr "解析度縮放比例"
#: client/scenes/lobby_gui.cpp:823 client/scenes/lobby_gui.cpp:1062
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - 單眼 {}x{}"
#: client/scenes/lobby_gui.cpp:834 client/scenes/lobby_gui.cpp:1073
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "解析度高於 {}x{} 可能不被頭戴式裝置支援"
#: client/scenes/lobby_gui.cpp:840
#: client/scenes/lobby_gui.cpp:850
msgid "Enable microphone"
msgstr "啟用麥克風"
#: client/scenes/lobby_gui.cpp:849
#: client/scenes/lobby_gui.cpp:859
msgid "Unprocessed Microphone Audio"
msgstr "未處理的麥克風音訊"
#: client/scenes/lobby_gui.cpp:855
#: client/scenes/lobby_gui.cpp:865
msgid "Force disable audio filters, such as noise cancellation"
msgstr "強制停用音訊濾波器,例如降噪"
#: client/scenes/lobby_gui.cpp:862
#: client/scenes/lobby_gui.cpp:872
msgid "Enable hand tracking"
msgstr "啟用手部追蹤"
#: client/scenes/lobby_gui.cpp:868 client/scenes/lobby_gui.cpp:880
#: client/scenes/lobby_gui.cpp:892 client/scenes/lobby_gui.cpp:908
#: client/scenes/lobby_gui.cpp:958
#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918
#: client/scenes/lobby_gui.cpp:968
msgid "This feature is not supported by your headset"
msgstr "您的頭戴式裝置不支援此功能"
#: client/scenes/lobby_gui.cpp:874
#: client/scenes/lobby_gui.cpp:884
msgid "Enable eye tracking"
msgstr "啟用眼球追蹤"
#: client/scenes/lobby_gui.cpp:886
#: client/scenes/lobby_gui.cpp:896
msgid "Enable face tracking"
msgstr "啟用臉部追蹤"
#: client/scenes/lobby_gui.cpp:899
#: client/scenes/lobby_gui.cpp:909
msgid "Enable body tracking"
msgstr "啟用身體追蹤"
#: client/scenes/lobby_gui.cpp:915
#: client/scenes/lobby_gui.cpp:925
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -233,11 +233,11 @@ msgstr ""
"需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」,\n"
"否則身體資料將根據控制器和頭戴式裝置的位置進行猜測"
#: client/scenes/lobby_gui.cpp:928
#: client/scenes/lobby_gui.cpp:938
msgid "Enable lower body tracking"
msgstr "啟用下半身追蹤"
#: client/scenes/lobby_gui.cpp:934
#: client/scenes/lobby_gui.cpp:944
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -246,11 +246,11 @@ msgstr ""
"使用 Generative Legs 預估下半身關節位置\n"
"需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」"
#: client/scenes/lobby_gui.cpp:937
#: client/scenes/lobby_gui.cpp:947
msgid "Enable hip tracking"
msgstr "啟用臀部追蹤"
#: client/scenes/lobby_gui.cpp:943
#: client/scenes/lobby_gui.cpp:953
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -258,19 +258,19 @@ msgstr ""
"僅在啟用下半身追蹤時生效\n"
"在使用其他臀部追蹤時可能需要此功能"
#: client/scenes/lobby_gui.cpp:951
#: client/scenes/lobby_gui.cpp:961
msgid "Enable video passthrough in lobby"
msgstr "在待機區啟用影像穿透 (Passthrough)"
#: client/scenes/lobby_gui.cpp:972 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
msgid "OpenXR post-processing"
msgstr "OpenXR 後期處理"
#: client/scenes/lobby_gui.cpp:976 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
msgid "Supersampling"
msgstr "超取樣"
#: client/scenes/lobby_gui.cpp:996 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -278,11 +278,11 @@ msgstr ""
"減少高對比邊緣的閃爍。\n"
"當輸入解析度對於頭戴式顯示器來說很高時很有用"
#: client/scenes/lobby_gui.cpp:1001 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
msgid "Sharpening"
msgstr "銳利化"
#: client/scenes/lobby_gui.cpp:1021 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -290,11 +290,11 @@ msgstr ""
"改善高對比邊緣的清晰度並抵消模糊。\n"
"當輸入解析度對於頭戴式顯示器來說較低時很有用"
#: client/scenes/lobby_gui.cpp:1030
#: client/scenes/lobby_gui.cpp:1040
msgid "Enable Snapdragon Game Super Resolution"
msgstr "啟用 Snapdragon 遊戲超級解析度"
#: client/scenes/lobby_gui.cpp:1038
#: client/scenes/lobby_gui.cpp:1048
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
@@ -303,161 +303,163 @@ msgstr ""
"在此頭戴式顯示器上,此設定已被上方的原生「銳利化」設定完全取代。\n"
"僅在您了解自己在做什麼時啟用。"
#: client/scenes/lobby_gui.cpp:1040
#: client/scenes/lobby_gui.cpp:1050
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr "用戶端向上取樣和銳利化,會增加頭戴式顯示器的效能負擔"
#: client/scenes/lobby_gui.cpp:1058
#: client/scenes/lobby_gui.cpp:1068
msgid "Upscaling factor"
msgstr "向上取樣係數"
#: client/scenes/lobby_gui.cpp:1077
#: client/scenes/lobby_gui.cpp:1087
msgid "Use edge direction"
msgstr "使用邊緣方向"
#: client/scenes/lobby_gui.cpp:1083
#: client/scenes/lobby_gui.cpp:1093
msgid "Adds an additional performance cost"
msgstr "會增加額外的效能負擔"
#: client/scenes/lobby_gui.cpp:1088
#: client/scenes/lobby_gui.cpp:1098
msgid "Edge threshold"
msgstr "邊緣閾值"
#: client/scenes/lobby_gui.cpp:1095 client/scenes/lobby_gui.cpp:1104
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "推薦:{:.1f}"
#: client/scenes/lobby_gui.cpp:1098
#: client/scenes/lobby_gui.cpp:1108
msgid "Edge sharpness"
msgstr "邊緣銳利度"
#: client/scenes/lobby_gui.cpp:1200 client/scenes/lobby_gui.cpp:1208
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418
msgid "CPU time"
msgstr "CPU 時間"
#: client/scenes/lobby_gui.cpp:1204
#: client/scenes/lobby_gui.cpp:1214
msgid "CPU time [ms]"
msgstr "CPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:1214 client/scenes/lobby_gui.cpp:1222
#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232
#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419
msgid "GPU time"
msgstr "GPU 時間"
#: client/scenes/lobby_gui.cpp:1218
#: client/scenes/lobby_gui.cpp:1228
msgid "GPU time [ms]"
msgstr "GPU 時間 [ms]"
#: client/scenes/lobby_gui.cpp:1261
#: client/scenes/lobby_gui.cpp:1271
msgid "Enable the microphone?"
msgstr "要啟用麥克風嗎?"
#: client/scenes/lobby_gui.cpp:1266
#: client/scenes/lobby_gui.cpp:1276
msgid "Enable eye tracking?"
msgstr "要啟用眼部追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1271
#: client/scenes/lobby_gui.cpp:1281
msgid "Enable face tracking?"
msgstr "要啟用臉部追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1276
#: client/scenes/lobby_gui.cpp:1286
msgid "Enable body tracking?"
msgstr "要啟用身體追蹤嗎?"
#: client/scenes/lobby_gui.cpp:1284
#: client/scenes/lobby_gui.cpp:1294
msgid "Welcome to WiVRn"
msgstr "歡迎使用 WiVRn"
#: client/scenes/lobby_gui.cpp:1308
#: client/scenes/lobby_gui.cpp:1318
msgid "Yes"
msgstr "是"
#: client/scenes/lobby_gui.cpp:1315
#: client/scenes/lobby_gui.cpp:1325
msgid "No"
msgstr "否"
#: client/scenes/lobby_gui.cpp:1334 client/scenes/lobby_gui.cpp:1973
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
msgid "Licenses"
msgstr "授權資訊"
#: client/scenes/lobby_gui.cpp:1648
#: client/scenes/lobby_gui.cpp:1658
msgid "Microphone is enabled"
msgstr "麥克風已啟用"
#: client/scenes/lobby_gui.cpp:1649
#: client/scenes/lobby_gui.cpp:1659
msgid "Microphone is disabled"
msgstr "麥克風已停用"
#: client/scenes/lobby_gui.cpp:1658
#: client/scenes/lobby_gui.cpp:1668
msgid "Hand tracking is enabled"
msgstr "手部追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1659
#: client/scenes/lobby_gui.cpp:1669
msgid "Hand tracking is disabled"
msgstr "手部追蹤已停用"
#: client/scenes/lobby_gui.cpp:1668
#: client/scenes/lobby_gui.cpp:1678
msgid "Eye tracking is enabled"
msgstr "眼球追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1669
#: client/scenes/lobby_gui.cpp:1679
msgid "Eye tracking is disabled"
msgstr "眼球追蹤已停用"
#: client/scenes/lobby_gui.cpp:1682
#: client/scenes/lobby_gui.cpp:1692
msgid "Face tracking is enabled"
msgstr "臉部追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1683
#: client/scenes/lobby_gui.cpp:1693
msgid "Face tracking is disabled"
msgstr "臉部追蹤已停用"
#: client/scenes/lobby_gui.cpp:1693
#: client/scenes/lobby_gui.cpp:1703
msgid "Body tracking is enabled"
msgstr "身體追蹤已啟用"
#: client/scenes/lobby_gui.cpp:1694
#: client/scenes/lobby_gui.cpp:1704
msgid "Body tracking is disabled"
msgstr "身體追蹤已停用"
#: client/scenes/lobby_gui.cpp:1710
#: client/scenes/lobby_gui.cpp:1720
msgid "Add server"
msgstr "新增伺服器"
#: client/scenes/lobby_gui.cpp:1955
#: client/scenes/lobby_gui.cpp:1965
msgid "Server list"
msgstr "伺服器列表"
#: client/scenes/lobby_gui.cpp:1958 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
msgid "Settings"
msgstr "設定"
#: client/scenes/lobby_gui.cpp:1961
#: client/scenes/lobby_gui.cpp:1971
msgid "Post-processing"
msgstr "後期處理"
#: client/scenes/lobby_gui.cpp:1965
#: client/scenes/lobby_gui.cpp:1975
msgid "Debug"
msgstr "偵錯"
#: client/scenes/lobby_gui.cpp:1970
#: client/scenes/lobby_gui.cpp:1980
msgid "About"
msgstr "關於"
#: client/scenes/lobby_gui.cpp:1976
#: client/scenes/lobby_gui.cpp:1986
msgid "Exit"
msgstr "離開"
#: client/scenes/lobby_gui.cpp:1993
#: client/scenes/lobby_gui.cpp:2003
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr "按下握把按鈕或手掌向上\n以移動主視窗"
msgstr ""
"按下握把按鈕或手掌向上\n"
"以移動主視窗"
#: client/scenes/lobby_gui.cpp:1995
#: client/scenes/lobby_gui.cpp:2005
msgid "Press the grip button to move the main window"
msgstr "按下握把按鈕以移動主視窗"
@@ -1,4 +1,4 @@
From 7a3b7758a1ae3b0d9c7a48280f279f8e99b8b678 Mon Sep 17 00:00:00 2001
From fee8044b7304f789f5bb6f1b3b442d57847dba7b Mon Sep 17 00:00:00 2001
From: rcelyte <rcelyte@battletrains.org>
Date: Mon, 17 Jun 2024 04:32:36 +0000
Subject: [PATCH] d/solarxr: Add SolarXR IPC driver
@@ -28,7 +28,7 @@ Subject: [PATCH] d/solarxr: Add SolarXR IPC driver
create mode 100644 src/xrt/drivers/solarxr/solarxr_ipc_socket.h
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c84143343c..da462f4c3f 100644
index f4f13fbb2..755bebb33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -343,6 +343,7 @@ option_with_deps(XRT_BUILD_DRIVER_VIVE "Enable driver for HTC Vive, Vive Pro, Va
@@ -39,7 +39,7 @@ index c84143343c..da462f4c3f 100644
option(XRT_BUILD_DRIVER_SIMULATED "Enable simulated driver" ON)
option(XRT_BUILD_SAMPLES "Enable compiling sample code implementations that will not be linked into any final targets" ON)
@@ -443,6 +444,7 @@ list(
@@ -446,6 +447,7 @@ list(
"TWRAP"
"XREAL_AIR"
"STEAMVR_LIGHTHOUSE"
@@ -47,7 +47,7 @@ index c84143343c..da462f4c3f 100644
)
# Package name needs to be known by the native code itself.
@@ -672,6 +674,7 @@ message(STATUS "# DRIVER_VIVE: ${XRT_BUILD_DRIVER_VIVE}")
@@ -678,6 +680,7 @@ message(STATUS "# DRIVER_VIVE: ${XRT_BUILD_DRIVER_VIVE}")
message(STATUS "# DRIVER_WMR: ${XRT_BUILD_DRIVER_WMR}")
message(STATUS "# DRIVER_XREAL_AIR: ${XRT_BUILD_DRIVER_XREAL_AIR}")
message(STATUS "# DRIVER_STEAMVR_LIGHTHOUSE: ${XRT_BUILD_DRIVER_STEAMVR_LIGHTHOUSE}")
@@ -56,10 +56,10 @@ index c84143343c..da462f4c3f 100644
# cmake-format: on
diff --git a/src/xrt/drivers/CMakeLists.txt b/src/xrt/drivers/CMakeLists.txt
index 0d422f16e4..5a823014d3 100644
index 90dc4970f..a41d25117 100644
--- a/src/xrt/drivers/CMakeLists.txt
+++ b/src/xrt/drivers/CMakeLists.txt
@@ -494,6 +494,23 @@ if(XRT_BUILD_DRIVER_STEAMVR_LIGHTHOUSE)
@@ -510,6 +510,23 @@ if(XRT_BUILD_DRIVER_STEAMVR_LIGHTHOUSE)
list(APPEND ENABLED_HEADSET_DRIVERS steamvr_lh)
endif()
@@ -85,7 +85,7 @@ index 0d422f16e4..5a823014d3 100644
# but it never gets linked into a final target.
diff --git a/src/xrt/drivers/solarxr/feeder.c b/src/xrt/drivers/solarxr/feeder.c
new file mode 100644
index 0000000000..55e235608c
index 000000000..55e235608
--- /dev/null
+++ b/src/xrt/drivers/solarxr/feeder.c
@@ -0,0 +1,286 @@
@@ -377,7 +377,7 @@ index 0000000000..55e235608c
+}
diff --git a/src/xrt/drivers/solarxr/feeder.h b/src/xrt/drivers/solarxr/feeder.h
new file mode 100644
index 0000000000..d5ef6a8b5f
index 000000000..d5ef6a8b5
--- /dev/null
+++ b/src/xrt/drivers/solarxr/feeder.h
@@ -0,0 +1,33 @@
@@ -416,7 +416,7 @@ index 0000000000..d5ef6a8b5f
+ bool (*filter)(struct xrt_device *device)); // thread safe
diff --git a/src/xrt/drivers/solarxr/protocol.c b/src/xrt/drivers/solarxr/protocol.c
new file mode 100644
index 0000000000..01181b84a9
index 000000000..01181b84a
--- /dev/null
+++ b/src/xrt/drivers/solarxr/protocol.c
@@ -0,0 +1,383 @@
@@ -805,7 +805,7 @@ index 0000000000..01181b84a9
+}
diff --git a/src/xrt/drivers/solarxr/protocol.h b/src/xrt/drivers/solarxr/protocol.h
new file mode 100644
index 0000000000..b630d26b41
index 000000000..b630d26b4
--- /dev/null
+++ b/src/xrt/drivers/solarxr/protocol.h
@@ -0,0 +1,245 @@
@@ -1056,7 +1056,7 @@ index 0000000000..b630d26b41
+read_solarxr_bone(struct solarxr_bone *out, const uint8_t buffer[], size_t buffer_len, const solarxr_bone_t *ref);
diff --git a/src/xrt/drivers/solarxr/solarxr_device.c b/src/xrt/drivers/solarxr/solarxr_device.c
new file mode 100644
index 0000000000..f6bf6ce53a
index 000000000..3fc8f74a0
--- /dev/null
+++ b/src/xrt/drivers/solarxr/solarxr_device.c
@@ -0,0 +1,1145 @@
@@ -2143,7 +2143,7 @@ index 0000000000..f6bf6ce53a
+ tracker->base.get_tracked_pose = solarxr_generic_tracker_get_tracked_pose;
+ tracker->base.destroy = solarxr_generic_tracker_destroy;
+ tracker->base.inputs[0].name = XRT_INPUT_GENERIC_TRACKER_POSE;
+ m_relation_history_create(&tracker->history, NULL);
+ m_relation_history_create(&tracker->history);
+ tracker->role = SOLARXR_BODY_PART_NONE;
+ tracker->parent = device;
+ tracker->weak_ref = &device->trackers[i];
@@ -2207,7 +2207,7 @@ index 0000000000..f6bf6ce53a
+}
diff --git a/src/xrt/drivers/solarxr/solarxr_interface.h b/src/xrt/drivers/solarxr/solarxr_interface.h
new file mode 100644
index 0000000000..15916484ff
index 000000000..15916484f
--- /dev/null
+++ b/src/xrt/drivers/solarxr/solarxr_interface.h
@@ -0,0 +1,40 @@
@@ -2253,7 +2253,7 @@ index 0000000000..15916484ff
+#endif
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_message.h b/src/xrt/drivers/solarxr/solarxr_ipc_message.h
new file mode 100644
index 0000000000..0d97b51118
index 000000000..0d97b5111
--- /dev/null
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_message.h
@@ -0,0 +1,74 @@
@@ -2333,7 +2333,7 @@ index 0000000000..0d97b51118
+}
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
new file mode 100644
index 0000000000..b889a76163
index 000000000..b889a7616
--- /dev/null
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
@@ -0,0 +1,255 @@
@@ -2594,7 +2594,7 @@ index 0000000000..b889a76163
+}
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_socket.h b/src/xrt/drivers/solarxr/solarxr_ipc_socket.h
new file mode 100644
index 0000000000..aaebfdd547
index 000000000..aaebfdd54
--- /dev/null
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_socket.h
@@ -0,0 +1,49 @@
@@ -2648,10 +2648,10 @@ index 0000000000..aaebfdd547
+ return atomic_load(&state->ipc_handle) != XRT_IPC_HANDLE_INVALID;
+}
diff --git a/src/xrt/targets/common/CMakeLists.txt b/src/xrt/targets/common/CMakeLists.txt
index e2b9ba79d1..1fbf5f436f 100644
index e7655456a..c42697d0e 100644
--- a/src/xrt/targets/common/CMakeLists.txt
+++ b/src/xrt/targets/common/CMakeLists.txt
@@ -201,6 +201,10 @@ if(XRT_BUILD_DRIVER_SIMULAVR)
@@ -205,6 +205,10 @@ if(XRT_BUILD_DRIVER_SIMULAVR)
target_link_libraries(target_lists PRIVATE drv_svr)
endif()
@@ -2663,4 +2663,5 @@ index e2b9ba79d1..1fbf5f436f 100644
# Instance
#
--
GitLab
2.50.1
@@ -1,22 +1,22 @@
From 999c18895dc60680b0c4e167b4b89de031020445 Mon Sep 17 00:00:00 2001
From a0c03b2f602311a8c4299e250ecb64be9528194b Mon Sep 17 00:00:00 2001
From: rcelyte <rcelyte@battletrains.org>
Date: Fri, 23 Aug 2024 20:54:53 +0000
Subject: [PATCH] t/common: Load SolarXR driver
---
src/xrt/drivers/qwerty/qwerty_device.c | 4 +++
.../common/target_builder_lighthouse.c | 25 +++++++++++++++++
.../targets/common/target_builder_qwerty.c | 25 +++++++++++++++++
.../targets/common/target_builder_rift_s.c | 26 ++++++++++++++++++
.../targets/common/target_builder_steamvr.c | 27 +++++++++++++++++++
src/xrt/targets/common/target_builder_wmr.c | 25 +++++++++++++++++
6 files changed, 132 insertions(+)
src/xrt/drivers/qwerty/qwerty_device.c | 4 ++++
.../targets/common/target_builder_lighthouse.c | 14 ++++++++++++++
src/xrt/targets/common/target_builder_qwerty.c | 14 ++++++++++++++
src/xrt/targets/common/target_builder_rift_s.c | 15 +++++++++++++++
src/xrt/targets/common/target_builder_steamvr.c | 15 +++++++++++++++
src/xrt/targets/common/target_builder_wmr.c | 14 ++++++++++++++
6 files changed, 76 insertions(+)
diff --git a/src/xrt/drivers/qwerty/qwerty_device.c b/src/xrt/drivers/qwerty/qwerty_device.c
index 53949d3b90..e1194bc061 100644
index b390af901..fc60c869c 100644
--- a/src/xrt/drivers/qwerty/qwerty_device.c
+++ b/src/xrt/drivers/qwerty/qwerty_device.c
@@ -315,6 +315,8 @@ qwerty_hmd_create(void)
@@ -317,6 +317,8 @@ qwerty_hmd_create(void)
xd->inputs[0].name = XRT_INPUT_GENERIC_HEAD_POSE;
@@ -25,7 +25,7 @@ index 53949d3b90..e1194bc061 100644
xd->update_inputs = u_device_noop_update_inputs;
xd->get_tracked_pose = qwerty_get_tracked_pose;
xd->get_view_poses = u_device_get_view_poses;
@@ -367,6 +369,8 @@ qwerty_controller_create(bool is_left, struct qwerty_hmd *qhmd)
@@ -369,6 +371,8 @@ qwerty_controller_create(bool is_left, struct qwerty_hmd *qhmd)
xd->binding_profiles = binding_profiles;
xd->binding_profile_count = ARRAY_SIZE(binding_profiles);
@@ -35,7 +35,7 @@ index 53949d3b90..e1194bc061 100644
xd->get_tracked_pose = qwerty_get_tracked_pose;
xd->set_output = qwerty_set_output;
diff --git a/src/xrt/targets/common/target_builder_lighthouse.c b/src/xrt/targets/common/target_builder_lighthouse.c
index 2386586be3..b8cbafdbed 100644
index 78fe52ab4..da68c0b4a 100644
--- a/src/xrt/targets/common/target_builder_lighthouse.c
+++ b/src/xrt/targets/common/target_builder_lighthouse.c
@@ -58,6 +58,10 @@
@@ -49,25 +49,8 @@ index 2386586be3..b8cbafdbed 100644
#if defined(XRT_BUILD_DRIVER_SURVIVE)
#define DEFAULT_DRIVER "survive"
#else
@@ -509,6 +513,16 @@ try_add_opengloves(struct xrt_device *left,
#endif
}
+#ifdef XRT_BUILD_DRIVER_SOLARXR
+static void
+destroy_system_devices_solarxr(struct xrt_system_devices *xsysd)
+{
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, NULL, 0);
+ u_system_devices_close(xsysd);
+ free(xsysd);
+}
+#endif
+
static xrt_result_t
lighthouse_open_system_impl(struct xrt_builder *xb,
cJSON *config,
@@ -736,6 +750,17 @@ end_valve_index:
try_add_opengloves(left, right, &left_ht, &right_ht);
@@ -740,6 +744,16 @@ end_valve_index:
try_add_opengloves(left, right, &unobstructed_left_ht, &unobstructed_right_ht);
}
+#ifdef XRT_BUILD_DRIVER_SOLARXR
@@ -76,7 +59,6 @@ index 2386586be3..b8cbafdbed 100644
+ if (count != 0) {
+ xsysd->static_roles.body = xsysd->xdevs[xsysd->xdev_count];
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, xsysd->xdevs, xsysd->xdev_count);
+ xsysd->destroy = destroy_system_devices_solarxr;
+ }
+ xsysd->xdev_count += count;
+#endif
@@ -85,7 +67,7 @@ index 2386586be3..b8cbafdbed 100644
ubrh->head = head;
ubrh->left = left;
diff --git a/src/xrt/targets/common/target_builder_qwerty.c b/src/xrt/targets/common/target_builder_qwerty.c
index 2c66ad3038..5a5059ee18 100644
index 2c66ad303..76444147e 100644
--- a/src/xrt/targets/common/target_builder_qwerty.c
+++ b/src/xrt/targets/common/target_builder_qwerty.c
@@ -18,6 +18,10 @@
@@ -99,24 +81,7 @@ index 2c66ad3038..5a5059ee18 100644
#include <assert.h>
@@ -67,6 +71,16 @@ qwerty_estimate_system(struct xrt_builder *xb,
return XRT_SUCCESS;
}
+#ifdef XRT_BUILD_DRIVER_SOLARXR
+static void
+destroy_system_devices_solarxr(struct xrt_system_devices *xsysd)
+{
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, NULL, 0);
+ u_system_devices_close(xsysd);
+ free(xsysd);
+}
+#endif
+
static xrt_result_t
qwerty_open_system_impl(struct xrt_builder *xb,
cJSON *config,
@@ -100,6 +114,17 @@ qwerty_open_system_impl(struct xrt_builder *xb,
@@ -100,6 +104,16 @@ qwerty_open_system_impl(struct xrt_builder *xb,
ubrh->left = left;
ubrh->right = right;
@@ -126,7 +91,6 @@ index 2c66ad3038..5a5059ee18 100644
+ if (count != 0) {
+ xsysd->static_roles.body = xsysd->xdevs[xsysd->xdev_count];
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, xsysd->xdevs, xsysd->xdev_count);
+ xsysd->destroy = destroy_system_devices_solarxr;
+ }
+ xsysd->xdev_count += count;
+#endif
@@ -135,7 +99,7 @@ index 2c66ad3038..5a5059ee18 100644
}
diff --git a/src/xrt/targets/common/target_builder_rift_s.c b/src/xrt/targets/common/target_builder_rift_s.c
index 675b303228..bf5581688d 100644
index fb284d77b..f48eebe35 100644
--- a/src/xrt/targets/common/target_builder_rift_s.c
+++ b/src/xrt/targets/common/target_builder_rift_s.c
@@ -28,6 +28,10 @@
@@ -149,24 +113,7 @@ index 675b303228..bf5581688d 100644
#include "rift_s/rift_s_interface.h"
#include "rift_s/rift_s.h"
@@ -92,6 +96,16 @@ rift_s_estimate_system(struct xrt_builder *xb,
return XRT_SUCCESS;
}
+#ifdef XRT_BUILD_DRIVER_SOLARXR
+static void
+destroy_system_devices_solarxr(struct xrt_system_devices *xsysd)
+{
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, NULL, 0);
+ u_system_devices_close(xsysd);
+ free(xsysd);
+}
+#endif
+
static xrt_result_t
rift_s_open_system_impl(struct xrt_builder *xb,
cJSON *config,
@@ -200,6 +214,18 @@ rift_s_open_system_impl(struct xrt_builder *xb,
@@ -200,6 +204,17 @@ rift_s_open_system_impl(struct xrt_builder *xb,
}
#endif
@@ -177,7 +124,6 @@ index 675b303228..bf5581688d 100644
+ if (count != 0) {
+ xsysd->static_roles.body = xsysd->xdevs[xsysd->xdev_count];
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, xsysd->xdevs, xsysd->xdev_count);
+ xsysd->destroy = destroy_system_devices_solarxr;
+ }
+ xsysd->xdev_count += count;
+#endif
@@ -186,7 +132,7 @@ index 675b303228..bf5581688d 100644
ubrh->head = hmd_xdev;
ubrh->left = left_xdev;
diff --git a/src/xrt/targets/common/target_builder_steamvr.c b/src/xrt/targets/common/target_builder_steamvr.c
index 7b70e6b7c7..0267bb900d 100644
index a603eeaf5..171ad0d9a 100644
--- a/src/xrt/targets/common/target_builder_steamvr.c
+++ b/src/xrt/targets/common/target_builder_steamvr.c
@@ -34,6 +34,10 @@
@@ -200,27 +146,9 @@ index 7b70e6b7c7..0267bb900d 100644
#ifndef XRT_BUILD_DRIVER_STEAMVR_LIGHTHOUSE
#error "This builder requires the SteamVR Lighthouse driver"
#endif
@@ -115,6 +119,17 @@ steamvr_destroy(struct xrt_builder *xb)
free(svrb);
}
+#ifdef XRT_BUILD_DRIVER_SOLARXR
+static void
+destroy_system_devices_solarxr(struct xrt_system_devices *xsysd)
+{
+ void _Z7destroyP18xrt_system_devices(struct xrt_system_devices * xsysd);
+
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, NULL, 0);
+ _Z7destroyP18xrt_system_devices(xsysd);
+}
+#endif
+
static xrt_result_t
steamvr_open_system(struct xrt_builder *xb,
cJSON *config,
@@ -151,6 +166,18 @@ steamvr_open_system(struct xrt_builder *xb,
svrb->right_ht = u_system_devices_get_ht_device_right(xsysd);
xsysd->static_roles.hand_tracking.right = svrb->right_ht;
@@ -166,6 +170,17 @@ steamvr_open_system(struct xrt_builder *xb,
SET_HT_ROLES(conforming)
#undef SET_HT_ROLES
+#ifdef XRT_BUILD_DRIVER_SOLARXR
+ const uint32_t count =
@@ -229,7 +157,6 @@ index 7b70e6b7c7..0267bb900d 100644
+ if (count != 0) {
+ xsysd->static_roles.body = xsysd->xdevs[xsysd->xdev_count];
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, xsysd->xdevs, xsysd->xdev_count);
+ xsysd->destroy = destroy_system_devices_solarxr;
+ }
+ xsysd->xdev_count += count;
+#endif
@@ -238,7 +165,7 @@ index 7b70e6b7c7..0267bb900d 100644
* Space overseer.
*/
diff --git a/src/xrt/targets/common/target_builder_wmr.c b/src/xrt/targets/common/target_builder_wmr.c
index 40df6b6535..d543c441c2 100644
index 57c3bfd7e..c0564c2a8 100644
--- a/src/xrt/targets/common/target_builder_wmr.c
+++ b/src/xrt/targets/common/target_builder_wmr.c
@@ -26,6 +26,10 @@
@@ -252,24 +179,7 @@ index 40df6b6535..d543c441c2 100644
#ifndef XRT_BUILD_DRIVER_WMR
#error "Must only be built with XRT_BUILD_DRIVER_WMR set"
#endif
@@ -175,6 +179,16 @@ wmr_estimate_system(struct xrt_builder *xb,
return XRT_SUCCESS;
}
+#ifdef XRT_BUILD_DRIVER_SOLARXR
+static void
+destroy_system_devices_solarxr(struct xrt_system_devices *xsysd)
+{
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, NULL, 0);
+ u_system_devices_close(xsysd);
+ free(xsysd);
+}
+#endif
+
static xrt_result_t
wmr_open_system_impl(struct xrt_builder *xb,
cJSON *config,
@@ -295,6 +309,17 @@ wmr_open_system_impl(struct xrt_builder *xb,
@@ -296,6 +300,16 @@ wmr_open_system_impl(struct xrt_builder *xb,
right = ht_right;
}
@@ -279,7 +189,6 @@ index 40df6b6535..d543c441c2 100644
+ if (count != 0) {
+ xsysd->static_roles.body = xsysd->xdevs[xsysd->xdev_count];
+ solarxr_device_set_feeder_devices(xsysd->static_roles.body, xsysd->xdevs, xsysd->xdev_count);
+ xsysd->destroy = destroy_system_devices_solarxr;
+ }
+ xsysd->xdev_count += count;
+#endif
@@ -288,5 +197,4 @@ index 40df6b6535..d543c441c2 100644
// Assign to role(s).
ubrh->head = head;
--
GitLab
2.50.1
+1 -1
View File
@@ -57,7 +57,7 @@ std::filesystem::path active_runtime::openvr_compat_path()
std::optional<std::filesystem::path> flatpak_root = flatpak_key(flatpak::section::instance, "app-path");
// flatpak default
if (flatpak_root)
return *flatpak_root / "xrizer";
return *flatpak_root / "OpenComposite";
for (auto path: std::ranges::split_view(std::string_view(OVR_COMPAT_SEARCH_PATH), std::string_view(":")))
{
+4 -2
View File
@@ -197,11 +197,13 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
{
case XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER:
roles.left = xdev_count;
static_roles.hand_tracking.unobstructed.left = lhdev; // FIXME: certainly wrong
static_roles.hand_tracking.unobstructed.left = nullptr;
static_roles.hand_tracking.conforming.left = lhdev;
break;
case XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER:
roles.right = xdev_count;
static_roles.hand_tracking.unobstructed.right = lhdev; // FIXME: certainly wrong
static_roles.hand_tracking.unobstructed.right = nullptr;
static_roles.hand_tracking.conforming.right = lhdev;
break;
default:
break;