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
29 changed files with 380 additions and 838 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:
+6 -6
View File
@@ -59,12 +59,6 @@ Kirigami.ApplicationWindow {
// Set the visible property here because dismissing the message removes the binding
if (value == WivrnServer.FailedToStart)
message_failed_to_start.visible = true;
if (root.first_run && started) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
}
function onPairingEnabledChanged(value) {
@@ -90,6 +84,12 @@ Kirigami.ApplicationWindow {
if (WivrnServer.serverStatus == WivrnServer.Stopped)
WivrnServer.start_server();
if (root.first_run) {
console.log("First run");
root.pageStack.push(Qt.resolvedUrl("WizardPage.qml"));
root.first_run = false;
}
if (root.last_run_version != ApkInstaller.currentVersion) {
root.last_run_version = ApkInstaller.currentVersion;
}
+6 -14
View File
@@ -506,37 +506,29 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
void wivrn_server::setJsonConfiguration(QString new_configuration)
{
if (server_interface)
{
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
}
server_interface->setJsonConfiguration(m_jsonConfiguration = new_configuration);
jsonConfigurationChanged(new_configuration);
}
void wivrn_server::revoke_key(QString public_key)
{
if (server_interface)
server_interface->RevokeKey(public_key);
server_interface->RevokeKey(public_key);
}
void wivrn_server::rename_key(QString public_key, QString name)
{
if (server_interface)
server_interface->RenameKey(public_key, name);
server_interface->RenameKey(public_key, name);
}
QString wivrn_server::enable_pairing(int timeout_secs)
{
qDebug() << "Enabling pairing for" << timeout_secs << "seconds";
if (server_interface)
return server_interface->EnablePairing(timeout_secs).value();
return "";
return server_interface->EnablePairing(timeout_secs).value();
}
void wivrn_server::disable_pairing()
{
if (server_interface)
server_interface->DisablePairing();
server_interface->DisablePairing();
}
QString wivrn_server::hostname()
-2
View File
@@ -5,8 +5,6 @@ The headset application and the server dashboard are translated, contributions a
# Required software
You only need `gettext` and a text editor, you can optionally use a graphical editor such as [GNOME Translation Editor](https://wiki.gnome.org/Apps/Gtranslator/) or [Lokalize](https://apps.kde.org/lokalize/).
If using Lokalize, make sure to erase the "Default mailing list" in the settings, or it will write a KDE mailing list in the translation file and you will to manually remove it.
# Adding a new language
* Run `tools/update_messages.sh LANG` where LANG is the 2 letter [ISO 639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) language code, this will create files in the `locale` directory for the new language. Fill in the fields, `git add` the files, commit and file a pull request.
+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
+31 -41
View File
@@ -4,20 +4,20 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi 63
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 04:40-0300\n"
"PO-Revision-Date: 2025-08-08 11:56-0300\n"
"Last-Translator: myghi63 <myghi63@disroot.org>\n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-21 21:55-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 25.04.3\n"
"X-Generator: Gtranslator 48.0\n"
#: dashboard/apk_installer.cpp:167
#, kde-format
@@ -85,8 +85,8 @@ msgstr "Verificando a última versão..."
msgid "No precompiled APK is available for this version."
msgstr "Nenhum APK pré-compilado está disponível para esta versão."
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259
#: dashboard/qml/Main.qml:341
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:247
#: dashboard/qml/Main.qml:329
#, kde-format
msgid "ADB is not installed."
msgstr "ADB não está instalado."
@@ -135,7 +135,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:342
#, kde-format
msgid "Headsets"
msgstr "Headsets"
@@ -231,40 +231,40 @@ msgstr "Parear um novo headset"
msgid "Headset statistics"
msgstr "Estatísticas do headset"
#: dashboard/qml/Main.qml:107
#: dashboard/qml/Main.qml:103
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities."
msgstr "O servidor não tem capabilities CAP_SYS_NICE."
#: dashboard/qml/Main.qml:114
#: dashboard/qml/Main.qml:110
#, kde-format
msgid "Fix it"
msgstr "Conserte"
#: dashboard/qml/Main.qml:123
#: dashboard/qml/Main.qml:119
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted."
msgstr "A capability CAP_SYS_NICE será usada quando o servidor for reiniciado."
#: dashboard/qml/Main.qml:129
#: dashboard/qml/Main.qml:125
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reiniciar agora"
#: dashboard/qml/Main.qml:140
#: dashboard/qml/Main.qml:136
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1"
#: dashboard/qml/Main.qml:146
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "More info"
msgstr "Mais informações"
#: dashboard/qml/Main.qml:154
#: dashboard/qml/Main.qml:150
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -273,86 +273,76 @@ msgstr ""
"Use o driver Mesa (radv) para GPUs AMD\n"
"Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO"
#: 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 ""
"Nenhuma compatibilidade com OpenVR foi detectada. Os jogos do Steam não conseg"
"uirão carregar em VR.\n"
"Instale o xrizer ou o OpenComposite."
#: dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:159
#, kde-format
msgid "Server failed to start"
msgstr "Servidor falhou em iniciar"
#: dashboard/qml/Main.qml:177 dashboard/qml/TroubleshootPage.qml:77
#: dashboard/qml/Main.qml:165 dashboard/qml/TroubleshootPage.qml:77
#, kde-format
msgid "Open server logs"
msgstr "Abrir logs do servidor"
#: dashboard/qml/Main.qml:214
#: dashboard/qml/Main.qml:202
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Rodando"
#: dashboard/qml/Main.qml:229
#: dashboard/qml/Main.qml:217
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Pareando"
#: dashboard/qml/Main.qml:242
#: dashboard/qml/Main.qml:230
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373
#: dashboard/qml/Main.qml:238 dashboard/qml/WizardPage.qml:373
#, kde-format
msgid "Connect by USB"
msgstr "Conectar pela USB"
#: dashboard/qml/Main.qml:261
#: dashboard/qml/Main.qml:249
#, kde-format
msgid "No headset is connected or your headset is not in developer mode."
msgstr ""
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor."
#: dashboard/qml/Main.qml:269
#: dashboard/qml/Main.qml:257
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:286
#: dashboard/qml/Main.qml:274
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Aplicativo"
#: dashboard/qml/Main.qml:307
#: dashboard/qml/Main.qml:295
#, kde-format
msgid "Steam information"
msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:325
#: dashboard/qml/Main.qml:313
#, kde-format
msgid "Wizard"
msgstr "Assistente"
#: dashboard/qml/Main.qml:332
#: dashboard/qml/Main.qml:320
#, kde-format
msgid "Install the app"
msgstr "Instalar o aplicativo"
#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:349 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:356 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Resolver problemas"
@@ -363,13 +353,13 @@ msgctxt "don't start an application automatically"
msgid "None"
msgstr "Nenhum"
#: dashboard/qml/SelectGame.qml:20
#: dashboard/qml/SelectGame.qml:21
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Personalizado"
#: dashboard/qml/SelectGame.qml:76
#: dashboard/qml/SelectGame.qml:79
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
+154 -272
View File
@@ -4,140 +4,134 @@
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi 63
# SPDX-FileCopyrightText: 2025 myghi 63
# SPDX-FileCopyrightText: 2025 myghi 63
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-08-04 10:49-0300\n"
"PO-Revision-Date: 2025-08-08 11:55-0300\n"
"Last-Translator: myghi63 <myghi63@disroot.org>\n"
"POT-Creation-Date: 2025-06-20 19:23-0300\n"
"PO-Revision-Date: 2025-06-23 05:42-0300\n"
"Last-Translator: LuckShiba <LuckShiba@protonmail.com>\n"
"Language-Team: Brazilian Portuguese\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Lokalize 25.04.3\n"
"X-Generator: Gtranslator 48.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: client/scene.cpp:74
#: client/scenes/lobby.cpp:148
msgid "No supported swapchain format"
msgstr "Sem formato de cadeia de troca suportado"
#: client/scenes/lobby.cpp:185
#: client/scenes/lobby.cpp:228
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT"
#: client/scenes/lobby.cpp:188
#: client/scenes/lobby.cpp:231
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Protocolo incompatível de servidor WiVRn (cliente: {}, servidor: {})"
#: client/scenes/lobby.cpp:203
#: client/scenes/lobby.cpp:246
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Incapaz de resolver hostname: {}"
#: client/scenes/lobby.cpp:290 client/scenes/lobby.cpp:296
#: client/scenes/lobby.cpp:333 client/scenes/lobby.cpp:339
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Incapaz de conectar a {} ({}): {}"
#: client/scenes/lobby.cpp:379
#: client/scenes/lobby.cpp:453
msgid "Waiting for connection"
msgstr "Aguardando conexão"
#: client/scenes/lobby_gui.cpp:229
#: client/scenes/lobby_gui.cpp:132
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:232
#: client/scenes/lobby_gui.cpp:135
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualidade"
#: client/scenes/lobby_gui.cpp:234
#: client/scenes/lobby_gui.cpp:137
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398
#: client/scenes/stream_gui.cpp:812
#: client/scenes/lobby_gui.cpp:198
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808
#: client/scenes/lobby_gui.cpp:204
msgid "Video stream interrupted"
msgstr "Fluxo de vídeo interrompido"
#: client/scenes/lobby_gui.cpp:206
msgid ""
"Connection ready\n"
"Start a VR application on your computer"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR no seu computador"
#: client/scenes/lobby_gui.cpp:208
#, c++-format
msgid ""
"Connection ready\n"
"Start a VR application on {}"
msgstr ""
"Conexão pronta\n"
"Inicie um aplicativo VR em {}"
#: client/scenes/lobby_gui.cpp:221
msgid "Close"
msgstr "Fechar"
#: client/scenes/lobby_gui.cpp:268
#: client/scenes/lobby_gui.cpp:227
msgid "Connection"
msgstr "Conexão"
#: client/scenes/lobby_gui.cpp:270
#: client/scenes/lobby_gui.cpp:229
#, c++-format
msgid "Connection to {}"
msgstr "Conexão a {}"
#: client/scenes/lobby_gui.cpp:300
#: client/scenes/lobby_gui.cpp:259
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:322
#: client/scenes/lobby_gui.cpp:281
msgid "Input the PIN displayed on the dashboard"
msgstr "Entre o PIN mostrado no painel"
#: client/scenes/lobby_gui.cpp:393
msgid "Connected to WiVRn server"
msgstr "Conectado ao servidor WiVRn"
#: client/scenes/lobby_gui.cpp:395
#, c++-format
msgid "Connected to {}"
msgstr "Conectado a {}"
#: client/scenes/lobby_gui.cpp:405
msgid "Start an application on the server to start streaming."
msgstr "Abra um aplicativo no servidor para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:414
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Abra um aplicativo no seu computador ou selecione um para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:416
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming."
#: client/scenes/lobby_gui.cpp:522
#: client/scenes/lobby_gui.cpp:356
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:533
#: client/scenes/lobby_gui.cpp:367
msgid "Address"
msgstr "Endereço"
#: client/scenes/lobby_gui.cpp:542
#: client/scenes/lobby_gui.cpp:376
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:384
msgid "TCP only"
msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:557
#: client/scenes/lobby_gui.cpp:391
msgid "Cancel"
msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:571
#: client/scenes/lobby_gui.cpp:405
msgid "Save"
msgstr "Salvar"
#: client/scenes/lobby_gui.cpp:624
#: client/scenes/lobby_gui.cpp:458
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -145,32 +139,32 @@ msgstr ""
"Inicie um servidor WiVRn em sua\n"
"rede local"
#: client/scenes/lobby_gui.cpp:656
#: client/scenes/lobby_gui.cpp:490
msgid "Autoconnect"
msgstr "Autoconectar"
#: client/scenes/lobby_gui.cpp:682
#: client/scenes/lobby_gui.cpp:516
msgid "Connect"
msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:526 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versão de servidor incompatível"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:528
msgid "Server not available"
msgstr "Servidor não disponível"
#: client/scenes/lobby_gui.cpp:780
#: client/scenes/lobby_gui.cpp:614
msgid "Refresh rate"
msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:614 client/scenes/lobby_gui.cpp:616
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automático"
#: client/scenes/lobby_gui.cpp:789
#: client/scenes/lobby_gui.cpp:623
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -178,60 +172,60 @@ msgstr ""
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
"Pode causar oscilações quando uma alteração ocorrer."
#: client/scenes/lobby_gui.cpp:806
#: client/scenes/lobby_gui.cpp:640
msgid "Minimum refresh rate"
msgstr "Taxa de atualização mínima"
#: client/scenes/lobby_gui.cpp:829
#: client/scenes/lobby_gui.cpp:663
msgid "Resolution scale"
msgstr "Escala de resolução"
#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072
#: client/scenes/lobby_gui.cpp:667 client/scenes/lobby_gui.cpp:971
#, c-format, c++-format
msgid "%d%% - {}x{} per eye"
msgstr "%d%% - {}x{} por olho"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083
#: client/scenes/lobby_gui.cpp:678 client/scenes/lobby_gui.cpp:982
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset"
#: client/scenes/lobby_gui.cpp:850
#: client/scenes/lobby_gui.cpp:684
msgid "Enable microphone"
msgstr "Ativar microfone"
#: client/scenes/lobby_gui.cpp:859
#: client/scenes/lobby_gui.cpp:694
msgid "Unprocessed Microphone Audio"
msgstr "Áudio Não-processado de Microfone"
#: client/scenes/lobby_gui.cpp:865
#: client/scenes/lobby_gui.cpp:700
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Força a desativação de filtros de áudio tais como cancelamento de ruído"
#: client/scenes/lobby_gui.cpp:872
#: client/scenes/lobby_gui.cpp:707
msgid "Enable hand tracking"
msgstr "Ativar rastreamento de mãos"
#: 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
#: client/scenes/lobby_gui.cpp:714 client/scenes/lobby_gui.cpp:727
#: client/scenes/lobby_gui.cpp:740 client/scenes/lobby_gui.cpp:757
#: client/scenes/lobby_gui.cpp:807
msgid "This feature is not supported by your headset"
msgstr "Este recurso não é suportado pelo seu headset"
#: client/scenes/lobby_gui.cpp:884
#: client/scenes/lobby_gui.cpp:720
msgid "Enable eye tracking"
msgstr "Ativar rastreamento ocular"
#: client/scenes/lobby_gui.cpp:896
#: client/scenes/lobby_gui.cpp:733
msgid "Enable face tracking"
msgstr "Ativar rastreamento facial"
#: client/scenes/lobby_gui.cpp:909
#: client/scenes/lobby_gui.cpp:747
msgid "Enable body tracking"
msgstr "Ativar rastreamento corporal"
#: client/scenes/lobby_gui.cpp:925
#: client/scenes/lobby_gui.cpp:764
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -243,11 +237,11 @@ msgstr ""
"estimados\n"
"com base nas posições do controle e do headset."
#: client/scenes/lobby_gui.cpp:938
#: client/scenes/lobby_gui.cpp:777
msgid "Enable lower body tracking"
msgstr "Ativar rastreamento corporal inferior"
#: client/scenes/lobby_gui.cpp:944
#: client/scenes/lobby_gui.cpp:783
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -258,11 +252,11 @@ msgstr ""
"Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n"
"configurações de Rastreamento de Movimento do Quest"
#: client/scenes/lobby_gui.cpp:947
#: client/scenes/lobby_gui.cpp:786
msgid "Enable hip tracking"
msgstr "Ativar rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:953
#: client/scenes/lobby_gui.cpp:792
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -270,19 +264,45 @@ msgstr ""
"Só tem efeito com o rastreamento corporal inferior ativado\n"
"Pode ser desejado ao usar outra fonte de rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:961
#: client/scenes/lobby_gui.cpp:800
msgid "Enable video passthrough in lobby"
msgstr "Habilitar repassagem de vídeo no lobby"
#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434
#: client/scenes/lobby_gui.cpp:810
msgid "Show performance metrics"
msgstr "Mostrar métricas de desempenho"
#: client/scenes/lobby_gui.cpp:814
msgid "Overlay can be toggled by pressing both thumbsticks"
msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:852
#: client/scenes/stream_stats.cpp:159
msgid "CPU time"
msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:848
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:858 client/scenes/lobby_gui.cpp:866
#: client/scenes/stream_stats.cpp:161
msgid "GPU time"
msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:862
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:881
msgid "OpenXR post-processing"
msgstr "Pós-processamento OpenXR"
#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438
#: client/scenes/lobby_gui.cpp:885
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459
#: client/scenes/lobby_gui.cpp:905
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -290,11 +310,11 @@ msgstr ""
"Reduz flicker para arestas de alto contraste.\n"
"Útil quando a resolução de entrada é alta comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464
#: client/scenes/lobby_gui.cpp:910
msgid "Sharpening"
msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485
#: client/scenes/lobby_gui.cpp:930
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -302,11 +322,11 @@ msgstr ""
"Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n"
"Útil quando a resolução de entrada é baixa comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:1040
#: client/scenes/lobby_gui.cpp:939
msgid "Enable Snapdragon Game Super Resolution"
msgstr "Habilitar Snapdragon Game Super Resolution"
#: client/scenes/lobby_gui.cpp:1048
#: client/scenes/lobby_gui.cpp:947
msgid ""
"On this headset, this setting has been fully superseded by the native "
"Sharpening setting above.\n"
@@ -316,288 +336,184 @@ msgstr ""
"aumento de nitidez acima.\n"
"Somente habilite se souber o que está fazendo."
#: client/scenes/lobby_gui.cpp:1050
#: client/scenes/lobby_gui.cpp:949
msgid ""
"Client-side upscaling and sharpening, adds a performance cost on the headset"
msgstr ""
"Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de "
"desempenho no headset"
#: client/scenes/lobby_gui.cpp:1068
#: client/scenes/lobby_gui.cpp:967
msgid "Upscaling factor"
msgstr "Fator de upscaling"
#: client/scenes/lobby_gui.cpp:1087
#: client/scenes/lobby_gui.cpp:986
msgid "Use edge direction"
msgstr "Usar direção da aresta"
#: client/scenes/lobby_gui.cpp:1093
#: client/scenes/lobby_gui.cpp:992
msgid "Adds an additional performance cost"
msgstr "Acrescenta um custo de desempenho"
#: client/scenes/lobby_gui.cpp:1098
#: client/scenes/lobby_gui.cpp:997
msgid "Edge threshold"
msgstr "Limite da aresta"
#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114
#: client/scenes/lobby_gui.cpp:1004 client/scenes/lobby_gui.cpp:1013
#, c++-format
msgid "Recommended: {:.1f}"
msgstr "Recomenadado: {:.1f}"
#: client/scenes/lobby_gui.cpp:1108
#: client/scenes/lobby_gui.cpp:1007
msgid "Edge sharpness"
msgstr "Nitidez da aresta"
#: 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 "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:1214
msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: 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 "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:1228
msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1271
msgid "Enable the microphone?"
msgstr "Habilitar o microfone?"
#: client/scenes/lobby_gui.cpp:1276
msgid "Enable eye tracking?"
msgstr "Habilitar o rastreamento ocular?"
#: client/scenes/lobby_gui.cpp:1281
msgid "Enable face tracking?"
msgstr "Habilitar o rastreamento facial?"
#: client/scenes/lobby_gui.cpp:1286
msgid "Enable body tracking?"
msgstr "Habilitar o rastreamento corporal?"
#: client/scenes/lobby_gui.cpp:1294
msgid "Welcome to WiVRn"
msgstr "Bem vindo ao WiVRn"
#: client/scenes/lobby_gui.cpp:1318
msgid "Yes"
msgstr "Sim"
#: client/scenes/lobby_gui.cpp:1325
msgid "No"
msgstr "Não"
#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983
#: client/scenes/lobby_gui.cpp:1101 client/scenes/lobby_gui.cpp:1757
msgid "Licenses"
msgstr "Licenças"
#: client/scenes/lobby_gui.cpp:1658
#: client/scenes/lobby_gui.cpp:1440
msgid "Microphone is enabled"
msgstr "O microfone está ativado"
#: client/scenes/lobby_gui.cpp:1659
#: client/scenes/lobby_gui.cpp:1441
msgid "Microphone is disabled"
msgstr "O microfone está desativado"
#: client/scenes/lobby_gui.cpp:1668
#: client/scenes/lobby_gui.cpp:1450
msgid "Hand tracking is enabled"
msgstr "O rastreamento de mãos está ativado"
#: client/scenes/lobby_gui.cpp:1669
#: client/scenes/lobby_gui.cpp:1451
msgid "Hand tracking is disabled"
msgstr "O rastreamento de mãos está desativado"
#: client/scenes/lobby_gui.cpp:1678
#: client/scenes/lobby_gui.cpp:1460
msgid "Eye tracking is enabled"
msgstr "O rastreamento ocular está ativado"
#: client/scenes/lobby_gui.cpp:1679
#: client/scenes/lobby_gui.cpp:1461
msgid "Eye tracking is disabled"
msgstr "O rastreamento ocular está desativado"
#: client/scenes/lobby_gui.cpp:1692
#: client/scenes/lobby_gui.cpp:1471 client/scenes/lobby_gui.cpp:1482
msgid "Face tracking is enabled"
msgstr "O rastreamento facial está ativado"
#: client/scenes/lobby_gui.cpp:1693
#: client/scenes/lobby_gui.cpp:1472 client/scenes/lobby_gui.cpp:1483
msgid "Face tracking is disabled"
msgstr "O rastreamento facial está desativado"
#: client/scenes/lobby_gui.cpp:1703
#: client/scenes/lobby_gui.cpp:1493
msgid "Body tracking is enabled"
msgstr "O rastreamento corporal está ativado"
#: client/scenes/lobby_gui.cpp:1704
#: client/scenes/lobby_gui.cpp:1494
msgid "Body tracking is disabled"
msgstr "O rastreamento corporal está desativado"
#: client/scenes/lobby_gui.cpp:1720
#: client/scenes/lobby_gui.cpp:1510
msgid "Add server"
msgstr "Adicionar servidor"
#: client/scenes/lobby_gui.cpp:1965
#: client/scenes/lobby_gui.cpp:1739
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796
#: client/scenes/lobby_gui.cpp:1742
msgid "Settings"
msgstr "Ajustes"
#: client/scenes/lobby_gui.cpp:1971
#: client/scenes/lobby_gui.cpp:1745
msgid "Post-processing"
msgstr "Pós-processamento"
#: client/scenes/lobby_gui.cpp:1975
#: client/scenes/lobby_gui.cpp:1749
msgid "Debug"
msgstr "Depurar"
#: client/scenes/lobby_gui.cpp:1980
#: client/scenes/lobby_gui.cpp:1754
msgid "About"
msgstr "Sobre"
#: client/scenes/lobby_gui.cpp:1986
#: client/scenes/lobby_gui.cpp:1760
msgid "Exit"
msgstr "Sair"
#: client/scenes/lobby_gui.cpp:2003
#: client/scenes/lobby_gui.cpp:1774
msgid ""
"Press the grip button or put your palm up\n"
"Press A or X or put your palm up\n"
"to move the main window"
msgstr ""
"Pressione o botão de aderência ou coloque a palma da mão para cima\n"
"Pressione A ou X ou coloque a palma da mão pra cima\n"
"para mover a janela principal"
#: client/scenes/lobby_gui.cpp:2005
msgid "Press the grip button to move the main window"
msgstr "Pressione o botão de aderência para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1776
msgid "Press A or X to move the main window"
msgstr "Pressione A ou X para mover a janela principal"
#: client/scenes/stream_gui.cpp:224
#: client/scenes/stream_stats.cpp:161
msgid "Reproject"
msgstr "Reprojetar"
#: client/scenes/stream_gui.cpp:225
#: client/scenes/stream_stats.cpp:162
msgid "Blit"
msgstr "Blit"
#: client/scenes/stream_gui.cpp:227
#: client/scenes/stream_stats.cpp:164
msgid "Network"
msgstr "Rede"
#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416
#: client/scenes/stream_stats.cpp:164
msgid "Download"
msgstr "Baixar"
#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417
#: client/scenes/stream_stats.cpp:165
msgid "Upload"
msgstr "Enviar"
#: client/scenes/stream_gui.cpp:297
#: client/scenes/stream_stats.cpp:234
#, c++-format
msgid "Decoder {}"
msgstr "Decodificador {}"
#: client/scenes/stream_gui.cpp:309
#: client/scenes/stream_stats.cpp:246
msgid "Timings [ms]"
msgstr "Tempos [ms]"
#: client/scenes/stream_gui.cpp:369
#: client/scenes/stream_stats.cpp:306
msgid "Encode"
msgstr "Codificar"
#: client/scenes/stream_gui.cpp:370
#: client/scenes/stream_stats.cpp:307
msgid "Send"
msgstr "Enviar"
#: client/scenes/stream_gui.cpp:371
#: client/scenes/stream_stats.cpp:308
msgid "Receive"
msgstr "Receber"
#: client/scenes/stream_gui.cpp:372
#: client/scenes/stream_stats.cpp:309
msgid "Decode"
msgstr "Decodificar"
#: client/scenes/stream_gui.cpp:373
#: client/scenes/stream_stats.cpp:310
msgid "Blitted"
msgstr "Blitado"
#: client/scenes/stream_gui.cpp:374
#: client/scenes/stream_stats.cpp:311
msgid "Displayed"
msgstr "Mostrado"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_stats.cpp:312
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_gui.cpp:393
#: client/scenes/stream_stats.cpp:330
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Movimento estimado para a latência de fótons: {}ms"
#: client/scenes/stream_gui.cpp:396
msgid "Press the grip button to move the window"
msgstr "Pressione o botão de aderência para mover a janela"
#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
#: client/scenes/stream_gui.cpp:420
msgid "Motion to photon latency"
msgstr "Latência (de movimento para fótons)"
#: client/scenes/stream_gui.cpp:492
msgid "Foveation center override"
msgstr "Ajuste do centro de foveação"
#: client/scenes/stream_gui.cpp:495
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} graus"
#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distância {:.2f} m"
#: client/scenes/stream_gui.cpp:505
msgid "Default"
msgstr "Padrão"
#: client/scenes/stream_gui.cpp:516
msgid "Change"
msgstr "Modificar"
#: client/scenes/stream_gui.cpp:548
msgid "Use the thumbsticks to move the foveation center"
msgstr "Use os thumbsticks para mover o centro da foveação"
#: client/scenes/stream_gui.cpp:549
msgid "Press A to save or B to cancel"
msgstr "Pressione A para salvar ou B para cancelar"
#: client/scenes/stream_gui.cpp:793
msgid "Stats"
msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:802
msgid "Statistics overlay"
msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:805
msgid "Compact view"
msgstr "Visualização compacta"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Tempo esgotado"
@@ -613,37 +529,3 @@ msgstr "Incapaz de verificar PIN"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Pareamento está desabilitado no servidor"
#~ msgid "Video stream interrupted"
#~ msgstr "Fluxo de vídeo interrompido"
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on your computer"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR no seu computador"
#, c++-format
#~ msgid ""
#~ "Connection ready\n"
#~ "Start a VR application on {}"
#~ msgstr ""
#~ "Conexão pronta\n"
#~ "Inicie um aplicativo VR em {}"
#~ msgid "Show performance metrics"
#~ msgstr "Mostrar métricas de desempenho"
#~ msgid "Overlay can be toggled by pressing both thumbsticks"
#~ msgstr "A sobreposição pode ser alternada pressionando ambos os joysticks"
#~ msgid ""
#~ "Press A or X or put your palm up\n"
#~ "to move the main window"
#~ msgstr ""
#~ "Pressione A ou X ou coloque a palma da mão pra cima\n"
#~ "para mover a janela principal"
#~ msgid "Press A or X to move the main window"
#~ msgstr "Pressione A ou X para mover a janela principal"
+7 -16
View File
@@ -20,12 +20,12 @@ msgstr ""
#: dashboard/apk_installer.cpp:167
#, kde-format
msgid "Downloading APK: %1 MB / %2 MB"
msgstr "Sťahuje sa APK: %1 MB / %2 MB"
msgstr "Sťahujem APK: %1 MB / %2 MB"
#: dashboard/apk_installer.cpp:169
#, kde-format
msgid "Downloading APK: %1 MB"
msgstr "Sťahuje sa APK: %1 MB"
msgstr "Sťahujem APK: %1 MB"
#: dashboard/apk_installer.cpp:178
#, kde-format
@@ -35,12 +35,12 @@ msgstr "Sťahovanie zrušené"
#: dashboard/apk_installer.cpp:194
#, kde-format
msgid "Cannot download APK: %1"
msgstr "APK sa nedá stiahnúť: %1"
msgstr "APK sa nedá stiahnuť: %1"
#: dashboard/apk_installer.cpp:217
#, kde-format
msgid "Installing APK"
msgstr "Inštaluje sa APK"
msgstr "Inštalujem APK"
#: dashboard/apk_installer.cpp:221
#, kde-format
@@ -76,7 +76,7 @@ msgstr "Nainštaluj si aplikáciu WiVRn do headsetu"
#: dashboard/qml/WizardPage.qml:192
#, kde-format
msgid "Checking latest release..."
msgstr "Kontroluje sa najnovšia verzia…"
msgstr "Kontrolujem najnovšiu verziu…"
#: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198
#, kde-format
@@ -369,12 +369,12 @@ msgstr "Prehľadať"
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "Manuálne foveovanie"
msgstr "Manuálna foveation"
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgid "Foveation strength:"
msgstr "Sila foveovania"
msgstr "Foveation sila"
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
@@ -927,12 +927,3 @@ msgstr "xrizer"
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
#: 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 ""
"Žiadna OpenVR kompatibilita nebola nájdená, Hry na steame nebude možné načítať do VRka.\n"
"Nainštalujte xrizer alebo OpenComposite."
+1 -1
View File
@@ -108,7 +108,7 @@ msgstr ""
#: client/scenes/lobby_gui.cpp:335
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "Spustite aplikáciu na {} alebo jednu vyberte pre začatie streamovania."
msgstr "Spustite aplikáciu na {} alebo vyberte jednu na začatie streamovania."
#: client/scenes/lobby_gui.cpp:383
msgid "Name"
-5
View File
@@ -9,11 +9,6 @@ if [ -d ".git" ] ; then
exec git am --committer-date-is-author-date "$@"
fi
if ! type patch 2> /dev/null ; then
echo "patch command not found" >&1
exit 1
fi
# There is no reliable way to apply a patch and succeed if it was
# already applied. Just ignore errors...
for f in "$@" ; do
@@ -1,64 +0,0 @@
From 4905a1bd2a32d0cef4ade575021b17cf453632f0 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 5 Aug 2025 15:51:48 +0200
Subject: [PATCH 1/3] a/vk: Track VK_KHR_video_maintenance1
---
scripts/generate_vk_helpers.py | 1 +
src/xrt/auxiliary/vk/vk_bundle_init.c | 8 ++++++++
src/xrt/auxiliary/vk/vk_helpers.h | 1 +
3 files changed, 10 insertions(+)
diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py
index 330b1b05e..80902193a 100755
--- a/scripts/generate_vk_helpers.py
+++ b/scripts/generate_vk_helpers.py
@@ -307,6 +307,7 @@ DEVICE_EXTENSIONS_TO_CHECK = [
"VK_KHR_present_wait",
"VK_KHR_synchronization2",
"VK_KHR_timeline_semaphore",
+ "VK_KHR_video_maintenance1",
"VK_EXT_calibrated_timestamps",
"VK_EXT_display_control",
"VK_EXT_external_memory_dma_buf",
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
index f28f7591f..b435d73dd 100644
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
@@ -754,6 +754,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
vk->has_KHR_present_wait = false;
vk->has_KHR_synchronization2 = false;
vk->has_KHR_timeline_semaphore = false;
+ vk->has_KHR_video_maintenance1 = false;
vk->has_EXT_calibrated_timestamps = false;
vk->has_EXT_display_control = false;
vk->has_EXT_external_memory_dma_buf = false;
@@ -868,6 +869,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
}
#endif // defined(VK_KHR_timeline_semaphore)
+#if defined(VK_KHR_video_maintenance1)
+ if (strcmp(ext, VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME) == 0) {
+ vk->has_KHR_video_maintenance1 = true;
+ continue;
+ }
+#endif // defined(VK_KHR_video_maintenance1)
+
#if defined(VK_EXT_calibrated_timestamps)
if (strcmp(ext, VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME) == 0) {
vk->has_EXT_calibrated_timestamps = true;
diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h
index 896b597d4..3b5cbb9c8 100644
--- a/src/xrt/auxiliary/vk/vk_helpers.h
+++ b/src/xrt/auxiliary/vk/vk_helpers.h
@@ -142,6 +142,7 @@ struct vk_bundle
bool has_KHR_present_wait;
bool has_KHR_synchronization2;
bool has_KHR_timeline_semaphore;
+ bool has_KHR_video_maintenance1;
bool has_EXT_calibrated_timestamps;
bool has_EXT_display_control;
bool has_EXT_external_memory_dma_buf;
--
2.50.1
@@ -1,134 +0,0 @@
From 26d9345724a868304b9d3ca5b58fecef02493df3 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 5 Aug 2025 16:00:59 +0200
Subject: [PATCH 2/3] a/vk: Expose video_maintenance_1 device feature
---
src/xrt/auxiliary/vk/vk_bundle_init.c | 40 +++++++++++++++++++++++++--
src/xrt/auxiliary/vk/vk_helpers.h | 4 +++
2 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
index b435d73dd..501cd6f3c 100644
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
@@ -1098,6 +1098,13 @@ filter_device_features(struct vk_bundle *vk,
};
#endif
+#ifdef VK_KHR_video_maintenance1
+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = {
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR,
+ .pNext = NULL,
+ };
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID,
@@ -1148,6 +1155,13 @@ filter_device_features(struct vk_bundle *vk,
}
#endif
+#ifdef VK_KHR_video_maintenance1
+ if (vk->has_KHR_video_maintenance1) {
+ vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features,
+ (VkBaseInStructure *)&video_maintenance_1_info);
+ }
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
if (vk->has_ANDROID_external_format_resolve) {
vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features,
@@ -1187,6 +1201,10 @@ filter_device_features(struct vk_bundle *vk,
CHECK(synchronization_2, synchronization_2_info.synchronization2);
#endif
+#ifdef VK_KHR_video_maintenance1
+ CHECK(video_maintenance_1, video_maintenance_1_info.videoMaintenance1);
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
CHECK(ext_fmt_resolve, ext_fmt_resolve_info.externalFormatResolve);
#endif
@@ -1207,14 +1225,16 @@ filter_device_features(struct vk_bundle *vk,
"\n\tshader_storage_image_write_without_format: %i"
"\n\tstorage_buffer_8bit_access: %i"
"\n\tsynchronization_2: %i"
- "\n\ttimeline_semaphore: %i", //
+ "\n\ttimeline_semaphore: %i"
+ "\n\tvideo_maintenance_1: %i", //
device_features->ext_fmt_resolve, //
device_features->null_descriptor, //
device_features->shader_image_gather_extended, //
device_features->shader_storage_image_write_without_format, //
device_features->storage_buffer_8bit_access, //
device_features->synchronization_2, //
- device_features->timeline_semaphore); //
+ device_features->timeline_semaphore, //
+ device_features->video_maintenance_1); //
}
@@ -1262,6 +1282,7 @@ vk_create_device(struct vk_bundle *vk,
vk->features.timeline_semaphore = device_features.timeline_semaphore;
vk->features.synchronization_2 = device_features.synchronization_2;
vk->features.present_wait = device_features.present_wait;
+ vk->features.video_maintenance_1 = device_features.video_maintenance_1;
/*
@@ -1384,6 +1405,14 @@ vk_create_device(struct vk_bundle *vk,
};
#endif
+#ifdef VK_KHR_video_maintenance1
+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = {
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR,
+ .pNext = NULL,
+ .videoMaintenance1 = device_features.video_maintenance_1,
+ };
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID,
@@ -1444,6 +1473,13 @@ vk_create_device(struct vk_bundle *vk,
}
#endif
+#ifdef VK_KHR_video_maintenance1
+ if (vk->has_KHR_video_maintenance1) {
+ vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info,
+ (VkBaseInStructure *)&video_maintenance_1_info);
+ }
+#endif
+
#ifdef VK_ANDROID_external_format_resolve
if (vk->has_ANDROID_external_format_resolve) {
vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info,
diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h
index 3b5cbb9c8..748c06dac 100644
--- a/src/xrt/auxiliary/vk/vk_helpers.h
+++ b/src/xrt/auxiliary/vk/vk_helpers.h
@@ -179,6 +179,9 @@ struct vk_bundle
//! Was KHR_present_wait requested, available, and enabled?
bool present_wait;
+
+ //! Was KHR_video_maintenance1 requested, available, and enabled?
+ bool video_maintenance_1;
} features;
//! Is the GPU a tegra device.
@@ -1030,6 +1033,7 @@ struct vk_device_features
bool ext_fmt_resolve;
bool storage_buffer_8bit_access;
bool present_wait;
+ bool video_maintenance_1;
};
/*!
--
2.50.1
@@ -1,26 +0,0 @@
From b8e23426ec5ac97efdceaf2a319b9d5921e7b412 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 5 Aug 2025 16:01:59 +0200
Subject: [PATCH 3/3] c/util: Request video_maintenance_1 feature
This will only be enabled if the VK_KHR_maintenance1 extension was
requested.
---
src/xrt/compositor/util/comp_vulkan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/xrt/compositor/util/comp_vulkan.c b/src/xrt/compositor/util/comp_vulkan.c
index 5618f4f78..9c719275c 100644
--- a/src/xrt/compositor/util/comp_vulkan.c
+++ b/src/xrt/compositor/util/comp_vulkan.c
@@ -282,6 +282,7 @@ create_device(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_args)
.timeline_semaphore = vk_args->timeline_semaphore,
.synchronization_2 = true,
.present_wait = true,
+ .video_maintenance_1 = true,
};
ret = vk_init_mutex(vk);
--
2.50.1
@@ -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(":")))
{
+41 -38
View File
@@ -23,14 +23,12 @@
#include "encoder/video_encoder.h"
#include "util/u_logging.h"
#include "utils/scoped_lock.h"
#include "wivrn_config.h"
#include "wivrn_foveation.h"
#include "main/comp_compositor.h"
#include "math/m_space.h"
#include "xrt_cast.h"
#include <algorithm>
#include <vector>
#include <vulkan/vulkan.hpp>
#include <vulkan/vulkan_core.h>
@@ -60,9 +58,6 @@ std::vector<const char *> wivrn_comp_target::wanted_device_extensions = {
#ifdef VK_KHR_video_encode_queue
VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_maintenance1
VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_encode_h264
VK_KHR_VIDEO_ENCODE_H264_EXTENSION_NAME,
#endif
@@ -193,46 +188,54 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
cn->images = U_TYPED_ARRAY_CALLOC(struct comp_target_image, cn->image_count);
vk::StructureChain image_info{
vk::ImageCreateInfo{
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = format,
.extent = {
.width = cn->width,
.height = cn->height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 2, // colour then alpha
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = flags | vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc,
.sharingMode = vk::SharingMode::eExclusive,
},
vk::ImageFormatListCreateInfo{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
},
};
#if WIVRN_USE_VULKAN_ENCODE
if (
vk->features.video_maintenance_1 and
std::ranges::any_of(
cn->settings,
[](const auto & item) { return item.encoder_name == encoder_vulkan //
and item.offset_x == 0 and item.offset_y == 0; }))
{
image_info.get().flags |= vk::ImageCreateFlagBits::eVideoProfileIndependentKHR;
image_info.get().usage |= vk::ImageUsageFlagBits::eVideoEncodeSrcKHR;
}
auto [video_profiles, encoder_flags] = video_encoder::get_create_image_info(cn->settings);
vk::VideoProfileListInfoKHR video_profile_list{
.profileCount = uint32_t(video_profiles.size()),
.pProfiles = video_profiles.data(),
};
#endif
cn->psc.images.resize(cn->image_count);
for (uint32_t i = 0; i < cn->image_count; i++)
{
vk::ImageFormatListCreateInfo formats_info{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
};
#if WIVRN_USE_VULKAN_ENCODE
if (video_profile_list.profileCount)
formats_info.pNext = &video_profile_list;
#endif
auto & image = cn->psc.images[i].image;
image = image_allocation(device, image_info.get(), {.usage = VMA_MEMORY_USAGE_AUTO});
image = image_allocation(
device, {
.pNext = &formats_info,
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = format,
.extent = {
.width = cn->width,
.height = cn->height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 2, // colour then alpha
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = flags
#if WIVRN_USE_VULKAN_ENCODE
| encoder_flags
#endif
| vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc,
.sharingMode = vk::SharingMode::eExclusive,
},
{
.usage = VMA_MEMORY_USAGE_AUTO,
});
cn->images[i].handle = image;
cn->wivrn_bundle->name(vk::Image(image), "comp target image");
}
+26
View File
@@ -180,6 +180,32 @@ std::unique_ptr<video_encoder> video_encoder::create(
return res;
}
#if WIVRN_USE_VULKAN_ENCODE
std::pair<std::vector<vk::VideoProfileInfoKHR>, vk::ImageUsageFlags> video_encoder::get_create_image_info(const std::vector<encoder_settings> & settings)
{
std::pair<std::vector<vk::VideoProfileInfoKHR>, vk::ImageUsageFlags> result;
for (const auto & item: settings)
{
if (item.encoder_name == encoder_vulkan)
{
result.second |= vk::ImageUsageFlagBits::eVideoEncodeSrcKHR;
switch (item.codec)
{
case h264:
result.first.push_back(video_encoder_vulkan_h264::video_profile_info.get());
break;
case h265:
// result.first.push_back(video_encoder_vulkan_h265::video_profile_info.get());
break;
case av1:
throw std::runtime_error("av1 not supported for vulkan video encode");
}
}
}
return result;
}
#endif
static const uint64_t idr_throttle = 100;
video_encoder::video_encoder(uint8_t stream_idx, to_headset::video_stream_description::channels_t channels, double bitrate_multiplier, bool async_send) :
+5
View File
@@ -20,6 +20,7 @@
#pragma once
#include "driver/clock_offset.h"
#include "wivrn_config.h"
#include "wivrn_packets.h"
#include <atomic>
@@ -113,6 +114,10 @@ public:
int input_height,
float fps);
#if WIVRN_USE_VULKAN_ENCODE
static std::pair<std::vector<vk::VideoProfileInfoKHR>, vk::ImageUsageFlags> get_create_image_info(const std::vector<encoder_settings> &);
#endif
video_encoder(uint8_t stream_idx, to_headset::video_stream_description::channels_t channels, double bitrate_multiplier, bool async_send);
virtual ~video_encoder();
+2 -4
View File
@@ -15,8 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "vk/vk_helpers.h"
#include "video_encoder_vulkan.h"
#include "encoder/encoder_settings.h"
@@ -268,7 +266,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca
.layerCount = 1},
};
if (rect.offset != vk::Offset2D{0, 0} or not vk.vk.features.video_maintenance_1)
if (rect.offset != vk::Offset2D{0, 0})
{
image_view_template.subresourceRange.baseArrayLayer = 0;
for (size_t i = 0; i < num_slots; ++i)
@@ -480,7 +478,7 @@ std::pair<bool, vk::Semaphore> wivrn::video_encoder_vulkan::present_image(vk::Im
video_cmd_buf.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit});
// If we encode from top left corner, encode from the source image directly
bool encode_direct = not slot_item.tmp_image;
bool encode_direct = rect.offset == vk::Offset2D{0, 0};
vk::ImageView image_view;
+2 -1
View File
@@ -80,9 +80,10 @@ class video_encoder_vulkan : public video_encoder
bool session_initialized = false;
const vk::Rect2D rect;
vk::VideoEncodeRateControlLayerInfoKHR rate_control_layer;
protected:
const uint8_t num_dpb_slots;
vk::VideoEncodeRateControlLayerInfoKHR rate_control_layer;
std::optional<vk::VideoEncodeRateControlInfoKHR> rate_control;
video_encoder_vulkan(wivrn_vk_bundle & vk,
+23 -45
View File
@@ -169,47 +169,6 @@ std::vector<void *> wivrn::video_encoder_vulkan_h264::setup_slot_info(size_t dpb
return res;
}
auto get_video_caps(vk::raii::PhysicalDevice & phys_dev)
{
vk::StructureChain video_profile_info{
vk::VideoProfileInfoKHR{
.videoCodecOperation =
vk::VideoCodecOperationFlagBitsKHR::eEncodeH264,
.chromaSubsampling = vk::VideoChromaSubsamplingFlagBitsKHR::e420,
.lumaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
.chromaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
},
vk::VideoEncodeH264ProfileInfoKHR{
.stdProfileIdc = STD_VIDEO_H264_PROFILE_IDC_BASELINE,
},
vk::VideoEncodeUsageInfoKHR{
.videoUsageHints = vk::VideoEncodeUsageFlagBitsKHR::eStreaming,
.videoContentHints = vk::VideoEncodeContentFlagBitsKHR::eRendered,
.tuningMode = vk::VideoEncodeTuningModeKHR::eUltraLowLatency,
}};
try
{
auto [video_caps, encode_caps, encode_h264_caps] =
phys_dev.getVideoCapabilitiesKHR<
vk::VideoCapabilitiesKHR,
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
return std::make_tuple(video_caps, encode_caps, encode_h264_caps, video_profile_info);
}
catch (...)
{}
// NVIDIA fails if the structure is there
video_profile_info.unlink<vk::VideoEncodeUsageInfoKHR>();
auto [video_caps, encode_caps, encode_h264_caps] =
phys_dev.getVideoCapabilitiesKHR<
vk::VideoCapabilitiesKHR,
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
return std::make_tuple(video_caps, encode_caps, encode_h264_caps, video_profile_info);
}
std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h264::create(
wivrn_vk_bundle & vk,
encoder_settings & settings,
@@ -227,11 +186,15 @@ std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h2
},
};
auto [video_caps, encode_caps, encode_h264_caps] =
vk.physical_device.getVideoCapabilitiesKHR<
vk::VideoCapabilitiesKHR,
vk::VideoEncodeCapabilitiesKHR,
vk::VideoEncodeH264CapabilitiesKHR>(video_profile_info.get());
if (settings.bit_depth != 8)
throw std::runtime_error("h264 codec only supports 8-bit encoding");
auto [video_caps, encode_caps, encode_h264_caps, video_profile_info] = get_video_caps(vk.physical_device);
std::unique_ptr<video_encoder_vulkan_h264> self(new video_encoder_vulkan_h264(vk, rect, video_caps, encode_caps, fps, stream_idx, settings));
vk::VideoEncodeH264SessionParametersAddInfoKHR h264_add_info{};
@@ -264,8 +227,6 @@ std::unique_ptr<wivrn::video_encoder_vulkan_h264> wivrn::video_encoder_vulkan_h2
self->rate_control->pNext = &self->rate_control_h264;
}
self->rate_control_layer.pNext = &self->rate_control_layer_h264;
self->init(video_caps, video_profile_info.get(), &session_create_info, &h264_session_params);
return self;
@@ -398,3 +359,20 @@ vk::ExtensionProperties wivrn::video_encoder_vulkan_h264::std_header_version()
VK_STD_VULKAN_VIDEO_CODEC_H264_ENCODE_EXTENSION_NAME);
return std_header_version;
}
decltype(wivrn::video_encoder_vulkan_h264::video_profile_info) wivrn::video_encoder_vulkan_h264::video_profile_info = vk::StructureChain{
vk::VideoProfileInfoKHR{
.videoCodecOperation =
vk::VideoCodecOperationFlagBitsKHR::eEncodeH264,
.chromaSubsampling = vk::VideoChromaSubsamplingFlagBitsKHR::e420,
.lumaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
.chromaBitDepth = vk::VideoComponentBitDepthFlagBitsKHR::e8,
},
vk::VideoEncodeH264ProfileInfoKHR{
.stdProfileIdc = STD_VIDEO_H264_PROFILE_IDC_BASELINE,
},
vk::VideoEncodeUsageInfoKHR{
.videoUsageHints = vk::VideoEncodeUsageFlagBitsKHR::eStreaming,
.videoContentHints = vk::VideoEncodeContentFlagBitsKHR::eRendered,
.tuningMode = vk::VideoEncodeTuningModeKHR::eUltraLowLatency,
}};
+2 -1
View File
@@ -46,7 +46,6 @@ class video_encoder_vulkan_h264 : public video_encoder_vulkan
vk::VideoEncodeH264GopRemainingFrameInfoKHR gop_info;
vk::VideoEncodeH264RateControlInfoKHR rate_control_h264;
vk::VideoEncodeH264RateControlLayerInfoKHR rate_control_layer_h264;
video_encoder_vulkan_h264(wivrn_vk_bundle & vk,
vk::Rect2D rect,
@@ -71,5 +70,7 @@ public:
uint8_t stream_idx);
std::vector<uint8_t> get_sps_pps();
static const vk::StructureChain<vk::VideoProfileInfoKHR, vk::VideoEncodeH264ProfileInfoKHR, vk::VideoEncodeUsageInfoKHR> video_profile_info;
};
} // namespace wivrn