Merge remote-tracking branch 'upstream/master'
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ task "generatePngs"() {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace "org.meumeu.wivrn"
|
namespace "org.meumeu.wivrn"
|
||||||
ndkVersion "27.1.12297006"
|
ndkVersion "28.1.13356709"
|
||||||
|
|
||||||
lint {
|
lint {
|
||||||
disable += "ExpiredTargetSdkVersion"
|
disable += "ExpiredTargetSdkVersion"
|
||||||
|
|||||||
@@ -1113,6 +1113,7 @@ void application::initialize()
|
|||||||
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME);
|
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME);
|
||||||
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME);
|
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME);
|
||||||
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME);
|
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME);
|
||||||
|
opt_extensions.push_back(XR_EXT_USER_PRESENCE_EXTENSION_NAME);
|
||||||
opt_extensions.push_back(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME);
|
opt_extensions.push_back(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME);
|
||||||
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME);
|
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME);
|
||||||
|
|
||||||
|
|||||||
@@ -717,7 +717,7 @@ scene_renderer::per_frame_resources & scene_renderer::current_frame()
|
|||||||
|
|
||||||
void scene_renderer::update_material_descriptor_set(scene_data::material & material)
|
void scene_renderer::update_material_descriptor_set(scene_data::material & material)
|
||||||
{
|
{
|
||||||
if (!material.ds || !material.ds.unique())
|
if (!material.ds || material.ds.use_count() != 1)
|
||||||
material.ds = ds_pool_material.allocate();
|
material.ds = ds_pool_material.allocate();
|
||||||
|
|
||||||
vk::DescriptorSet ds = **material.ds;
|
vk::DescriptorSet ds = **material.ds;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
#include "xr/fb_face_tracker2.h"
|
#include "xr/fb_face_tracker2.h"
|
||||||
#include "xr/htc_body_tracker.h"
|
#include "xr/htc_body_tracker.h"
|
||||||
#include "xr/pico_body_tracker.h"
|
#include "xr/pico_body_tracker.h"
|
||||||
|
#include <openxr/openxr.h>
|
||||||
#define GLM_FORCE_RADIANS
|
#define GLM_FORCE_RADIANS
|
||||||
|
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
@@ -217,6 +218,7 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
|
|||||||
|
|
||||||
info.hand_tracking = config.check_feature(feature::hand_tracking);
|
info.hand_tracking = config.check_feature(feature::hand_tracking);
|
||||||
info.eye_gaze = config.check_feature(feature::eye_gaze);
|
info.eye_gaze = config.check_feature(feature::eye_gaze);
|
||||||
|
info.presence = self->instance.has_extension(XR_EXT_USER_PRESENCE_EXTENSION_NAME) && self->system.user_presence_properties().supportsUserPresence;
|
||||||
|
|
||||||
if (config.check_feature(feature::face_tracking))
|
if (config.check_feature(feature::face_tracking))
|
||||||
{
|
{
|
||||||
@@ -1287,6 +1289,11 @@ void scenes::stream::on_xr_event(const xr::event & event)
|
|||||||
.view_index = uint8_t(event.visibility_mask_changed.viewIndex),
|
.view_index = uint8_t(event.visibility_mask_changed.viewIndex),
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case XR_TYPE_EVENT_DATA_USER_PRESENCE_CHANGED_EXT:
|
||||||
|
network_session->send_control(from_headset::user_presence_changed{
|
||||||
|
.present = (bool)event.user_presence_changed.isUserPresent,
|
||||||
|
});
|
||||||
|
break;
|
||||||
case XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED:
|
case XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED:
|
||||||
on_interaction_profile_changed(event.interaction_profile_changed);
|
on_interaction_profile_changed(event.interaction_profile_changed);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ union event
|
|||||||
XrEventDataDisplayRefreshRateChangedFB refresh_rate_changed;
|
XrEventDataDisplayRefreshRateChangedFB refresh_rate_changed;
|
||||||
XrEventDataPassthroughStateChangedFB passthrough_state_changed;
|
XrEventDataPassthroughStateChangedFB passthrough_state_changed;
|
||||||
XrEventDataVisibilityMaskChangedKHR visibility_mask_changed;
|
XrEventDataVisibilityMaskChangedKHR visibility_mask_changed;
|
||||||
|
XrEventDataUserPresenceChangedEXT user_presence_changed;
|
||||||
};
|
};
|
||||||
class instance : public utils::handle<XrInstance, xrDestroyInstance>
|
class instance : public utils::handle<XrInstance, xrDestroyInstance>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -105,6 +105,24 @@ XrSystemEyeGazeInteractionPropertiesEXT xr::system::eye_gaze_interaction_propert
|
|||||||
return eye_gaze_prop;
|
return eye_gaze_prop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XrSystemUserPresencePropertiesEXT xr::system::user_presence_properties() const
|
||||||
|
{
|
||||||
|
if (!id)
|
||||||
|
throw std::invalid_argument("this");
|
||||||
|
|
||||||
|
XrSystemUserPresencePropertiesEXT presence_prop{
|
||||||
|
.type = XR_TYPE_SYSTEM_USER_PRESENCE_PROPERTIES_EXT,
|
||||||
|
};
|
||||||
|
|
||||||
|
XrSystemProperties prop{
|
||||||
|
.type = XR_TYPE_SYSTEM_PROPERTIES,
|
||||||
|
.next = &presence_prop,
|
||||||
|
};
|
||||||
|
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
|
||||||
|
|
||||||
|
return presence_prop;
|
||||||
|
}
|
||||||
|
|
||||||
XrSystemFaceTrackingProperties2FB xr::system::fb_face_tracking2_properties() const
|
XrSystemFaceTrackingProperties2FB xr::system::fb_face_tracking2_properties() const
|
||||||
{
|
{
|
||||||
if (!id)
|
if (!id)
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ public:
|
|||||||
XrSystemProperties properties() const;
|
XrSystemProperties properties() const;
|
||||||
XrSystemHandTrackingPropertiesEXT hand_tracking_properties() const;
|
XrSystemHandTrackingPropertiesEXT hand_tracking_properties() const;
|
||||||
XrSystemEyeGazeInteractionPropertiesEXT eye_gaze_interaction_properties() const;
|
XrSystemEyeGazeInteractionPropertiesEXT eye_gaze_interaction_properties() const;
|
||||||
|
XrSystemUserPresencePropertiesEXT user_presence_properties() const;
|
||||||
XrSystemFaceTrackingProperties2FB fb_face_tracking2_properties() const;
|
XrSystemFaceTrackingProperties2FB fb_face_tracking2_properties() const;
|
||||||
XrSystemFacialTrackingPropertiesHTC htc_face_tracking_properties() const;
|
XrSystemFacialTrackingPropertiesHTC htc_face_tracking_properties() const;
|
||||||
XrSystemBodyTrackingPropertiesFB fb_body_tracking_properties() const;
|
XrSystemBodyTrackingPropertiesFB fb_body_tracking_properties() const;
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ struct headset_info_packet
|
|||||||
std::array<XrFovf, 2> fov;
|
std::array<XrFovf, 2> fov;
|
||||||
bool hand_tracking;
|
bool hand_tracking;
|
||||||
bool eye_gaze;
|
bool eye_gaze;
|
||||||
|
bool presence;
|
||||||
bool palm_pose;
|
bool palm_pose;
|
||||||
bool passthrough;
|
bool passthrough;
|
||||||
face_type face_tracking;
|
face_type face_tracking;
|
||||||
@@ -409,6 +410,11 @@ struct refresh_rate_changed
|
|||||||
float to;
|
float to;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct user_presence_changed
|
||||||
|
{
|
||||||
|
bool present;
|
||||||
|
};
|
||||||
|
|
||||||
using packets = std::variant<
|
using packets = std::variant<
|
||||||
crypto_handshake,
|
crypto_handshake,
|
||||||
pin_check_1,
|
pin_check_1,
|
||||||
@@ -426,7 +432,8 @@ using packets = std::variant<
|
|||||||
timesync_response,
|
timesync_response,
|
||||||
battery,
|
battery,
|
||||||
visibility_mask_changed,
|
visibility_mask_changed,
|
||||||
refresh_rate_changed>;
|
refresh_rate_changed,
|
||||||
|
user_presence_changed>;
|
||||||
} // namespace from_headset
|
} // namespace from_headset
|
||||||
|
|
||||||
namespace to_headset
|
namespace to_headset
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ Kirigami.ScrollablePage {
|
|||||||
else if (!Adb.adbInstalled)
|
else if (!Adb.adbInstalled)
|
||||||
return i18n("ADB is not installed.");
|
return i18n("ADB is not installed.");
|
||||||
else
|
else
|
||||||
return i18n("Connect a headset and make sure developper mode is enabled.");
|
return i18n("Connect a headset and make sure developer mode is enabled.");
|
||||||
}
|
}
|
||||||
explanation: {
|
explanation: {
|
||||||
if (!ApkInstaller.busy && !ApkInstaller.apkAvailable)
|
if (!ApkInstaller.busy && !ApkInstaller.apkAvailable)
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
Kirigami.Dialog {
|
Kirigami.Dialog {
|
||||||
id: devmode_dialog
|
id: devmode_dialog
|
||||||
title: i18n("How to enable developper mode")
|
title: i18n("How to enable developer mode")
|
||||||
showCloseButton: false
|
showCloseButton: false
|
||||||
padding: 2 * Kirigami.Units.largeSpacing
|
padding: 2 * Kirigami.Units.largeSpacing
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@@ -216,7 +216,7 @@ Kirigami.ScrollablePage {
|
|||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: i18n("<p>No headset detected. Make sure that:\n<ul><li>The ADB udev rules are installed</li><li>The headset is in <a href=\"#\">developper mode</a></li></ul></p>")
|
text: i18n("<p>No headset detected. Make sure that:\n<ul><li>The ADB udev rules are installed</li><li>The headset is in <a href=\"#\">developer mode</a></li></ul></p>")
|
||||||
onLinkActivated: devmode_dialog.open()
|
onLinkActivated: devmode_dialog.open()
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
# Keep in sync with CMakeLists.txt monado rev
|
# Keep in sync with CMakeLists.txt monado rev
|
||||||
rev = builtins.readFile ./monado-rev;
|
rev = builtins.readFile ./monado-rev;
|
||||||
# Nix will output the correct hash when it doesn't match
|
# Nix will output the correct hash when it doesn't match
|
||||||
hash = "sha256-+PiWxnvMXaSFc+67r17GBRXo7kbjikSElawNMJCydrk=";
|
hash = "sha256-BiqNLYTQseymHgkZ3RLHOesxi6qaf4L0j8dgpgaG7LI=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ msgstr "ADB no está instalado."
|
|||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:47
|
#: dashboard/qml/ApkInstallPage.qml:47
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "Connect a headset and make sure developper mode is enabled."
|
msgid "Connect a headset and make sure developer mode is enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Conecta un visor y asegúrate de que el modo desarrollador esté activado."
|
"Conecta un visor y asegúrate de que el modo desarrollador esté activado."
|
||||||
|
|
||||||
@@ -760,7 +760,7 @@ msgstr "Siguiente"
|
|||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:112
|
#: dashboard/qml/WizardPage.qml:112
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "How to enable developper mode"
|
msgid "How to enable developer mode"
|
||||||
msgstr "Cómo habilitar el modo desarrollador"
|
msgstr "Cómo habilitar el modo desarrollador"
|
||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:119
|
#: dashboard/qml/WizardPage.qml:119
|
||||||
@@ -831,7 +831,7 @@ msgstr "ADB no está instalado"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"<p>No headset detected. Make sure that:\n"
|
"<p>No headset detected. Make sure that:\n"
|
||||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||||
"href=\"#\">developper mode</a></li></ul></p>"
|
"href=\"#\">developer mode</a></li></ul></p>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<p>No se detectó el visor. Asegúrate de que:\n"
|
"<p>No se detectó el visor. Asegúrate de que:\n"
|
||||||
"<ul><li>Las reglas ADB udev están instaladas</li><li>El visor está en <a "
|
"<ul><li>Las reglas ADB udev están instaladas</li><li>El visor está en <a "
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ msgstr "ADB n'est pas installé."
|
|||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:47
|
#: dashboard/qml/ApkInstallPage.qml:47
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "Connect a headset and make sure developper mode is enabled."
|
msgid "Connect a headset and make sure developer mode is enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Connecter un casque et assurez-vous que le mode développeur est activé."
|
"Connecter un casque et assurez-vous que le mode développeur est activé."
|
||||||
|
|
||||||
@@ -756,7 +756,7 @@ msgstr "Suivant"
|
|||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:112
|
#: dashboard/qml/WizardPage.qml:112
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "How to enable developper mode"
|
msgid "How to enable developer mode"
|
||||||
msgstr "Comment activer le mode développeur"
|
msgstr "Comment activer le mode développeur"
|
||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:119
|
#: dashboard/qml/WizardPage.qml:119
|
||||||
@@ -829,7 +829,7 @@ msgstr "ADB n'est pas installé"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"<p>No headset detected. Make sure that:\n"
|
"<p>No headset detected. Make sure that:\n"
|
||||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||||
"href=\"#\">developper mode</a></li></ul></p>"
|
"href=\"#\">developer mode</a></li></ul></p>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<p>Aucun casque détecté. Assurez-vous que:\n"
|
"<p>Aucun casque détecté. Assurez-vous que:\n"
|
||||||
"<ul><li>Les règles udev sont installées</li><li>Le casque est en <a "
|
"<ul><li>Les règles udev sont installées</li><li>Le casque est en <a "
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ msgstr "ADBはインストールされていません。"
|
|||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:47
|
#: dashboard/qml/ApkInstallPage.qml:47
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "Connect a headset and make sure developper mode is enabled."
|
msgid "Connect a headset and make sure developer mode is enabled."
|
||||||
msgstr "HMDを接続し、開発モードを確認しましょう。"
|
msgstr "HMDを接続し、開発モードを確認しましょう。"
|
||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||||
@@ -737,7 +737,7 @@ msgstr "次"
|
|||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:112
|
#: dashboard/qml/WizardPage.qml:112
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "How to enable developper mode"
|
msgid "How to enable developer mode"
|
||||||
msgstr "HMDの開発者モードを有効する方法"
|
msgstr "HMDの開発者モードを有効する方法"
|
||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:119
|
#: dashboard/qml/WizardPage.qml:119
|
||||||
@@ -807,7 +807,7 @@ msgstr "ADBはインストールされていません"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"<p>No headset detected. Make sure that:\n"
|
"<p>No headset detected. Make sure that:\n"
|
||||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||||
"href=\"#\">developper mode</a></li></ul></p>"
|
"href=\"#\">developer mode</a></li></ul></p>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<p>HMDは見つかりません。以下を確認しましょう:\n"
|
"<p>HMDは見つかりません。以下を確認しましょう:\n"
|
||||||
"<ul><li>ADB用のudevルールはインストールされています</li><li>HMDは<a "
|
"<ul><li>ADB用のudevルールはインストールされています</li><li>HMDは<a "
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ msgstr "ADB não está instalado."
|
|||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:47
|
#: dashboard/qml/ApkInstallPage.qml:47
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "Connect a headset and make sure developper mode is enabled."
|
msgid "Connect a headset and make sure developer mode is enabled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Conecte um headset e assegure que o modo desenvolvedor esteja habilitado."
|
"Conecte um headset e assegure que o modo desenvolvedor esteja habilitado."
|
||||||
|
|
||||||
@@ -757,7 +757,7 @@ msgstr "Próximo"
|
|||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:112
|
#: dashboard/qml/WizardPage.qml:112
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "How to enable developper mode"
|
msgid "How to enable developer mode"
|
||||||
msgstr "Como habilitar o modo de desenvolvedor"
|
msgstr "Como habilitar o modo de desenvolvedor"
|
||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:119
|
#: dashboard/qml/WizardPage.qml:119
|
||||||
@@ -829,7 +829,7 @@ msgstr "ABD não está instalado"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"<p>No headset detected. Make sure that:\n"
|
"<p>No headset detected. Make sure that:\n"
|
||||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||||
"href=\"#\">developper mode</a></li></ul></p>"
|
"href=\"#\">developer mode</a></li></ul></p>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<p>Nenhum headset detectado. Tenha certeza que:\n"
|
"<p>Nenhum headset detectado. Tenha certeza que:\n"
|
||||||
"<ul><li>As regras udev de ADB estejam instaladas</li><li>O headset esteja em "
|
"<ul><li>As regras udev de ADB estejam instaladas</li><li>O headset esteja em "
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ msgstr "未安裝 ADB"
|
|||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:47
|
#: dashboard/qml/ApkInstallPage.qml:47
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "Connect a headset and make sure developper mode is enabled."
|
msgid "Connect a headset and make sure developer mode is enabled."
|
||||||
msgstr "連接頭戴式裝置並確認已啟用開發人員模式"
|
msgstr "連接頭戴式裝置並確認已啟用開發人員模式"
|
||||||
|
|
||||||
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
|
||||||
@@ -741,7 +741,7 @@ msgstr "下一步"
|
|||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:112
|
#: dashboard/qml/WizardPage.qml:112
|
||||||
#, kde-format
|
#, kde-format
|
||||||
msgid "How to enable developper mode"
|
msgid "How to enable developer mode"
|
||||||
msgstr "如何啟用開發者模式"
|
msgstr "如何啟用開發者模式"
|
||||||
|
|
||||||
#: dashboard/qml/WizardPage.qml:119
|
#: dashboard/qml/WizardPage.qml:119
|
||||||
@@ -808,7 +808,7 @@ msgstr "未安裝 ADB"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"<p>No headset detected. Make sure that:\n"
|
"<p>No headset detected. Make sure that:\n"
|
||||||
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
"<ul><li>The ADB udev rules are installed</li><li>The headset is in <a "
|
||||||
"href=\"#\">developper mode</a></li></ul></p>"
|
"href=\"#\">developer mode</a></li></ul></p>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"<p>未偵測到頭戴式裝置。請確認:\n"
|
"<p>未偵測到頭戴式裝置。請確認:\n"
|
||||||
"<ul><li>已安裝 ADB udev 規則</li><li>頭戴式裝置處於 <a href=\"#\">開發者模式"
|
"<ul><li>已安裝 ADB udev 規則</li><li>頭戴式裝置處於 <a href=\"#\">開發者模式"
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
bb9bcee2a3be75592de819d9e3fb2c8ed27bb7dc
|
2bf7f5c14b947ab3528e37551eb49753fe982dcb
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From 4c22024929342b69b4a1c7d30334b994ea8c78c1 Mon Sep 17 00:00:00 2001
|
From 20aa4cc8fd841df0498a3ea34cccbe475db5b800 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
||||||
Subject: [PATCH 01/11] c/multi: early wake of compositor
|
Subject: [PATCH 01/11] c/multi: early wake of compositor
|
||||||
@@ -128,5 +128,5 @@ index a0bd04e08..9d7610d02 100644
|
|||||||
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
|
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
|
||||||
// Make sure there is at least some sort of valid frame data here.
|
// Make sure there is at least some sort of valid frame data here.
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From dab0f39ec43bd1eb7d17d3bc32d1a2404cfa3702 Mon Sep 17 00:00:00 2001
|
From 328076ce8b74e32e6e41c3a53de3e000a43720a4 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Tue, 2 Apr 2024 17:14:42 +0200
|
Date: Tue, 2 Apr 2024 17:14:42 +0200
|
||||||
Subject: [PATCH 02/11] ipc/server: Always listen to stdin
|
Subject: [PATCH 02/11] ipc/server: Always listen to stdin
|
||||||
@@ -21,5 +21,5 @@ index d364fbed3..ad6b473b7 100644
|
|||||||
// default.
|
// default.
|
||||||
// This polls stdin.
|
// This polls stdin.
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From 4abefae5f0c3bfbe959368d2708384e4cb503ef5 Mon Sep 17 00:00:00 2001
|
From e1c5cdf2de5f1ef5c9556004ffc44a75e0fadc10 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
||||||
Subject: [PATCH 03/11] Use extern socket fd
|
Subject: [PATCH 03/11] Use extern socket fd
|
||||||
@@ -34,5 +34,5 @@ index ad6b473b7..ea6fad65b 100644
|
|||||||
// We may have been launched with socket activation
|
// We may have been launched with socket activation
|
||||||
int num_fds = sd_listen_fds(0);
|
int num_fds = sd_listen_fds(0);
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From da5a76a27abe3b9b44bc0dd432eb273c89cd4575 Mon Sep 17 00:00:00 2001
|
From 8aa74c49f98d57c44c7ee9ad4bfa30c91aae8e67 Mon Sep 17 00:00:00 2001
|
||||||
From: galister <3123227-galister@users.noreply.gitlab.com>
|
From: galister <3123227-galister@users.noreply.gitlab.com>
|
||||||
Date: Mon, 19 Aug 2024 18:51:45 +0900
|
Date: Mon, 19 Aug 2024 18:51:45 +0900
|
||||||
Subject: [PATCH 04/11] c/render: Add storage usage to distortion mesh
|
Subject: [PATCH 04/11] c/render: Add storage usage to distortion mesh
|
||||||
@@ -21,5 +21,5 @@ index 8ac24db8e..5a7e400c3 100644
|
|||||||
&image); // out_image
|
&image); // out_image
|
||||||
VK_CHK_AND_RET(ret, "vk_create_image_simple");
|
VK_CHK_AND_RET(ret, "vk_create_image_simple");
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From 322b8b36d52afe7f5b57f5785c8b07bc37d315e8 Mon Sep 17 00:00:00 2001
|
From 6e97c25c737f0eb2fda9683caf9d38be66ea5aa9 Mon Sep 17 00:00:00 2001
|
||||||
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
|
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
|
||||||
Date: Sat, 23 Nov 2024 02:42:12 +0900
|
Date: Sat, 23 Nov 2024 02:42:12 +0900
|
||||||
Subject: [PATCH 05/11] change environment blend mode selection logic
|
Subject: [PATCH 05/11] change environment blend mode selection logic
|
||||||
@@ -53,5 +53,5 @@ index 9d7610d02..f3131e810 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From 52417118d51d284ab5c0cd3d2c9a93c487b66f5f Mon Sep 17 00:00:00 2001
|
From a8d3eae0afd8b61aacc18824982c5b6066b5e4d6 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
||||||
Subject: [PATCH 06/11] Convert to YCbCr in Monado
|
Subject: [PATCH 06/11] Convert to YCbCr in Monado
|
||||||
@@ -11,14 +11,14 @@ Subject: [PATCH 06/11] Convert to YCbCr in Monado
|
|||||||
src/xrt/compositor/render/render_resources.c | 35 +++++--
|
src/xrt/compositor/render/render_resources.c | 35 +++++--
|
||||||
src/xrt/compositor/shaders/distortion.comp | 62 +++++++----
|
src/xrt/compositor/shaders/distortion.comp | 62 +++++++----
|
||||||
src/xrt/compositor/util/comp_render.h | 12 ++-
|
src/xrt/compositor/util/comp_render.h | 12 ++-
|
||||||
src/xrt/compositor/util/comp_render_cs.c | 41 +++++---
|
src/xrt/compositor/util/comp_render_cs.c | 19 ++--
|
||||||
8 files changed, 186 insertions(+), 92 deletions(-)
|
8 files changed, 175 insertions(+), 81 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||||
index 6df4d2b29..ea581accd 100644
|
index 06d1cb72a..80678b9f1 100644
|
||||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||||
+++ b/src/xrt/compositor/main/comp_renderer.c
|
+++ b/src/xrt/compositor/main/comp_renderer.c
|
||||||
@@ -1001,7 +1001,8 @@ dispatch_compute(struct comp_renderer *r,
|
@@ -1022,7 +1022,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||||
|
|
||||||
// Target Vulkan resources..
|
// Target Vulkan resources..
|
||||||
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
||||||
@@ -28,7 +28,7 @@ index 6df4d2b29..ea581accd 100644
|
|||||||
|
|
||||||
// Target view information.
|
// Target view information.
|
||||||
struct render_viewport_data views[XRT_MAX_VIEWS];
|
struct render_viewport_data views[XRT_MAX_VIEWS];
|
||||||
@@ -1012,7 +1013,8 @@ dispatch_compute(struct comp_renderer *r,
|
@@ -1033,7 +1034,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||||
comp_render_cs_initial_init( //
|
comp_render_cs_initial_init( //
|
||||||
&data, // data
|
&data, // data
|
||||||
target_image, // target_image
|
target_image, // target_image
|
||||||
@@ -39,10 +39,10 @@ index 6df4d2b29..ea581accd 100644
|
|||||||
do_timewarp); // do_timewarp
|
do_timewarp); // do_timewarp
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/main/comp_target.h b/src/xrt/compositor/main/comp_target.h
|
diff --git a/src/xrt/compositor/main/comp_target.h b/src/xrt/compositor/main/comp_target.h
|
||||||
index 876ff8cd9..924b4ea08 100644
|
index 143d41639..98301d596 100644
|
||||||
--- a/src/xrt/compositor/main/comp_target.h
|
--- a/src/xrt/compositor/main/comp_target.h
|
||||||
+++ b/src/xrt/compositor/main/comp_target.h
|
+++ b/src/xrt/compositor/main/comp_target.h
|
||||||
@@ -61,7 +61,8 @@ enum comp_target_display_timing_usage
|
@@ -62,7 +62,8 @@ enum comp_target_display_timing_usage
|
||||||
struct comp_target_image
|
struct comp_target_image
|
||||||
{
|
{
|
||||||
VkImage handle;
|
VkImage handle;
|
||||||
@@ -584,40 +584,40 @@ index 08b44d4cf..e1dd1cb58 100644
|
|||||||
+ imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0));
|
+ imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0));
|
||||||
}
|
}
|
||||||
diff --git a/src/xrt/compositor/util/comp_render.h b/src/xrt/compositor/util/comp_render.h
|
diff --git a/src/xrt/compositor/util/comp_render.h b/src/xrt/compositor/util/comp_render.h
|
||||||
index 579b91413..ad1b960cd 100644
|
index 0afe87393..550c014a0 100644
|
||||||
--- a/src/xrt/compositor/util/comp_render.h
|
--- a/src/xrt/compositor/util/comp_render.h
|
||||||
+++ b/src/xrt/compositor/util/comp_render.h
|
+++ b/src/xrt/compositor/util/comp_render.h
|
||||||
@@ -161,7 +161,8 @@ struct comp_render_dispatch_data
|
@@ -189,7 +189,8 @@ struct comp_render_dispatch_data
|
||||||
VkImage target_image;
|
VkImage image;
|
||||||
|
|
||||||
//! Target image view for distortion.
|
//! Target image view for distortion.
|
||||||
- VkImageView target_unorm_view;
|
- VkImageView storage_view;
|
||||||
+ VkImageView target_unorm_view_y;
|
+ VkImageView storage_view_y;
|
||||||
+ VkImageView target_unorm_view_cbcr;
|
+ VkImageView storage_view_cbcr;
|
||||||
} cs;
|
} cs;
|
||||||
|
} target;
|
||||||
};
|
};
|
||||||
|
@@ -465,7 +466,8 @@ comp_render_gfx_dispatch(struct render_gfx *render,
|
||||||
@@ -424,7 +425,8 @@ comp_render_gfx_dispatch(struct render_gfx *render,
|
|
||||||
static inline void
|
static inline void
|
||||||
comp_render_cs_initial_init(struct comp_render_dispatch_data *data,
|
comp_render_cs_initial_init(struct comp_render_dispatch_data *data,
|
||||||
VkImage target_image,
|
VkImage target_image,
|
||||||
- VkImageView target_unorm_view,
|
- VkImageView target_storage_view,
|
||||||
+ VkImageView target_unorm_view_y,
|
+ VkImageView target_storage_view_y,
|
||||||
+ VkImageView target_unorm_view_cbcr,
|
+ VkImageView target_storage_view_cbcr,
|
||||||
bool fast_path,
|
bool fast_path,
|
||||||
bool do_timewarp)
|
bool do_timewarp)
|
||||||
{
|
{
|
||||||
@@ -434,7 +436,8 @@ comp_render_cs_initial_init(struct comp_render_dispatch_data *data,
|
@@ -476,7 +478,8 @@ comp_render_cs_initial_init(struct comp_render_dispatch_data *data,
|
||||||
data->do_timewarp = do_timewarp;
|
|
||||||
|
|
||||||
data->cs.target_image = target_image;
|
// When writing into the target.
|
||||||
- data->cs.target_unorm_view = target_unorm_view;
|
data->target.cs.image = target_image;
|
||||||
+ data->cs.target_unorm_view_y = target_unorm_view_y;
|
- data->target.cs.storage_view = target_storage_view;
|
||||||
+ data->cs.target_unorm_view_cbcr = target_unorm_view_cbcr;
|
+ data->target.cs.storage_view_y = target_storage_view_y;
|
||||||
|
+ data->target.cs.storage_view_cbcr = target_storage_view_cbcr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -522,7 +525,8 @@ comp_render_cs_layer(struct render_compute *render,
|
@@ -565,7 +568,8 @@ comp_render_cs_layer(struct render_compute *render,
|
||||||
const struct xrt_pose *world_pose,
|
const struct xrt_pose *world_pose,
|
||||||
const struct xrt_pose *eye_pose,
|
const struct xrt_pose *eye_pose,
|
||||||
const VkImage target_image,
|
const VkImage target_image,
|
||||||
@@ -628,72 +628,50 @@ index 579b91413..ad1b960cd 100644
|
|||||||
bool do_timewarp);
|
bool do_timewarp);
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
||||||
index dbc2fec7e..c06dda63d 100644
|
index d9d9ea8a4..29c645bff 100644
|
||||||
--- a/src/xrt/compositor/util/comp_render_cs.c
|
--- a/src/xrt/compositor/util/comp_render_cs.c
|
||||||
+++ b/src/xrt/compositor/util/comp_render_cs.c
|
+++ b/src/xrt/compositor/util/comp_render_cs.c
|
||||||
@@ -343,11 +343,12 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc
|
@@ -347,7 +347,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc
|
||||||
}
|
render_compute_clear( //
|
||||||
|
render, //
|
||||||
|
d->target.cs.image, //
|
||||||
- render_compute_clear( //
|
- d->target.cs.storage_view, // target_image_view
|
||||||
- render, //
|
+ d->target.cs.storage_view_y, // target_image_view_y
|
||||||
- d->cs.target_image, //
|
+ d->target.cs.storage_view_cbcr, // target_image_view_cbcr
|
||||||
- d->cs.target_unorm_view, // target_image_view
|
target_viewport_datas); // views
|
||||||
- target_viewport_datas); // views
|
|
||||||
+ render_compute_clear( //
|
|
||||||
+ render, //
|
|
||||||
+ d->cs.target_image, //
|
|
||||||
+ d->cs.target_unorm_view_y, // target_image_view_y
|
|
||||||
+ d->cs.target_unorm_view_cbcr, // target_image_view_cbcr
|
|
||||||
+ target_viewport_datas); // views
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
@@ -398,7 +399,8 @@ crc_distortion_after_squash(struct render_compute *render, const struct comp_ren
|
||||||
@@ -391,14 +392,15 @@ crc_distortion_after_squash(struct render_compute *render, const struct comp_ren
|
src_image_views, //
|
||||||
target_viewport_datas[i] = viewport_data;
|
src_norm_rects, //
|
||||||
}
|
d->target.cs.image, //
|
||||||
|
- d->target.cs.storage_view, // target_image_view
|
||||||
- render_compute_projection( //
|
+ d->target.cs.storage_view_y, // target_image_view_y
|
||||||
- render, //
|
+ d->target.cs.storage_view_cbcr, // target_image_view_cbcr
|
||||||
- src_samplers, //
|
target_viewport_datas); // views
|
||||||
- src_image_views, //
|
|
||||||
- src_norm_rects, //
|
|
||||||
- d->cs.target_image, //
|
|
||||||
- d->cs.target_unorm_view, // target_image_view
|
|
||||||
- target_viewport_datas); // views
|
|
||||||
+ render_compute_projection( //
|
|
||||||
+ render, //
|
|
||||||
+ src_samplers, //
|
|
||||||
+ src_image_views, //
|
|
||||||
+ src_norm_rects, //
|
|
||||||
+ d->cs.target_image, //
|
|
||||||
+ d->cs.target_unorm_view_y, // target_image_view_y
|
|
||||||
+ d->cs.target_unorm_view_cbcr, // target_image_view_cbcr
|
|
||||||
+ target_viewport_datas); // views
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Fast path
|
@@ -471,7 +473,8 @@ crc_distortion_fast_path(struct render_compute *render,
|
||||||
@@ -470,7 +472,8 @@ crc_distortion_fast_path(struct render_compute *render,
|
src_image_views, //
|
||||||
src_image_views, //
|
src_norm_rects, //
|
||||||
src_norm_rects, //
|
d->target.cs.image, //
|
||||||
d->cs.target_image, //
|
- d->target.cs.storage_view, //
|
||||||
- d->cs.target_unorm_view, //
|
+ d->target.cs.storage_view_y, //
|
||||||
+ d->cs.target_unorm_view_y, //
|
+ d->target.cs.storage_view_cbcr, //
|
||||||
+ d->cs.target_unorm_view_cbcr, //
|
target_viewport_datas); //
|
||||||
target_viewport_datas); //
|
|
||||||
} else {
|
} else {
|
||||||
render_compute_projection_timewarp( //
|
render_compute_projection_timewarp( //
|
||||||
@@ -482,7 +485,8 @@ crc_distortion_fast_path(struct render_compute *render,
|
@@ -483,7 +486,8 @@ crc_distortion_fast_path(struct render_compute *render,
|
||||||
src_fovs, //
|
src_fovs, //
|
||||||
world_poses, //
|
world_poses, //
|
||||||
d->cs.target_image, //
|
d->target.cs.image, //
|
||||||
- d->cs.target_unorm_view, //
|
- d->target.cs.storage_view, //
|
||||||
+ d->cs.target_unorm_view_y, //
|
+ d->target.cs.storage_view_y, //
|
||||||
+ d->cs.target_unorm_view_cbcr, //
|
+ d->target.cs.storage_view_cbcr, //
|
||||||
target_viewport_datas); //
|
target_viewport_datas); //
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -503,7 +507,8 @@ comp_render_cs_layer(struct render_compute *render,
|
@@ -504,7 +508,8 @@ comp_render_cs_layer(struct render_compute *render,
|
||||||
const struct xrt_pose *world_pose,
|
const struct xrt_pose *world_pose,
|
||||||
const struct xrt_pose *eye_pose,
|
const struct xrt_pose *eye_pose,
|
||||||
const VkImage target_image,
|
const VkImage target_image,
|
||||||
@@ -703,7 +681,7 @@ index dbc2fec7e..c06dda63d 100644
|
|||||||
const struct render_viewport_data *target_view,
|
const struct render_viewport_data *target_view,
|
||||||
bool do_timewarp)
|
bool do_timewarp)
|
||||||
{
|
{
|
||||||
@@ -660,7 +665,8 @@ comp_render_cs_layer(struct render_compute *render,
|
@@ -661,7 +666,8 @@ comp_render_cs_layer(struct render_compute *render,
|
||||||
src_samplers, //
|
src_samplers, //
|
||||||
src_image_views, //
|
src_image_views, //
|
||||||
cur_image, //
|
cur_image, //
|
||||||
@@ -713,14 +691,14 @@ index dbc2fec7e..c06dda63d 100644
|
|||||||
target_view, //
|
target_view, //
|
||||||
do_timewarp); //
|
do_timewarp); //
|
||||||
}
|
}
|
||||||
@@ -696,6 +702,7 @@ comp_render_cs_layers(struct render_compute *render,
|
@@ -697,6 +703,7 @@ comp_render_cs_layers(struct render_compute *render,
|
||||||
&view->eye_pose, //
|
&view->eye_pose, //
|
||||||
view->image, //
|
view->squash.image, //
|
||||||
view->cs.unorm_view, //
|
view->squash.cs.storage_view, //
|
||||||
+ view->cs.unorm_view, //
|
+ view->squash.cs.storage_view, //
|
||||||
&view->layer_viewport_data, //
|
&view->squash.viewport_data, //
|
||||||
d->do_timewarp); //
|
d->do_timewarp); //
|
||||||
}
|
}
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From 40c05c4cae8af77048580a83631aa51b0f48dfec Mon Sep 17 00:00:00 2001
|
From 9d54ac2408a56556529de2f9173ffcd3d5775bd1 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Sun, 3 Nov 2024 13:40:00 +0100
|
Date: Sun, 3 Nov 2024 13:40:00 +0100
|
||||||
Subject: [PATCH 07/11] store alpha channel in layer 1
|
Subject: [PATCH 07/11] store alpha channel in layer 1
|
||||||
@@ -90,5 +90,5 @@ index e1dd1cb58..9ce46fe6f 100644
|
|||||||
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
||||||
}
|
}
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From e92fb94901fc652bde712af1e90c14237ea26f8f Mon Sep 17 00:00:00 2001
|
From 07084beafd9430561fbe5681398792282422dde6 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Wed, 19 Feb 2025 10:13:36 +0100
|
Date: Wed, 19 Feb 2025 10:13:36 +0100
|
||||||
Subject: [PATCH 08/11] st/oxr: bind to dynamic role's profile
|
Subject: [PATCH 08/11] st/oxr: bind to dynamic role's profile
|
||||||
@@ -36,5 +36,5 @@ index ce4c0cca1..8ba94dc55 100644
|
|||||||
oxr_get_profile_for_device_name(log, sess, xdev->name, out_p);
|
oxr_get_profile_for_device_name(log, sess, xdev->name, out_p);
|
||||||
if (*out_p != NULL) {
|
if (*out_p != NULL) {
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From 685e9804eb0abe3fcd6da67ffbc180db35ca4e1d Mon Sep 17 00:00:00 2001
|
From 8779248b08863b7a7dda3f9822cb9037372cbd3e Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Thu, 27 Feb 2025 22:45:36 +0100
|
Date: Thu, 27 Feb 2025 22:45:36 +0100
|
||||||
Subject: [PATCH 09/11] c/main: allow custom pacing app factory
|
Subject: [PATCH 09/11] c/main: allow custom pacing app factory
|
||||||
@@ -10,10 +10,10 @@ Subject: [PATCH 09/11] c/main: allow custom pacing app factory
|
|||||||
3 files changed, 11 insertions(+), 5 deletions(-)
|
3 files changed, 11 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
|
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
|
||||||
index 26c341385..36e3297f7 100644
|
index eecb14c17..24d061627 100644
|
||||||
--- a/src/xrt/compositor/main/comp_compositor.c
|
--- a/src/xrt/compositor/main/comp_compositor.c
|
||||||
+++ b/src/xrt/compositor/main/comp_compositor.c
|
+++ b/src/xrt/compositor/main/comp_compositor.c
|
||||||
@@ -983,6 +983,7 @@ compositor_init_renderer(struct comp_compositor *c)
|
@@ -984,6 +984,7 @@ compositor_init_renderer(struct comp_compositor *c)
|
||||||
xrt_result_t
|
xrt_result_t
|
||||||
comp_main_create_system_compositor(struct xrt_device *xdev,
|
comp_main_create_system_compositor(struct xrt_device *xdev,
|
||||||
const struct comp_target_factory *ctf,
|
const struct comp_target_factory *ctf,
|
||||||
@@ -21,7 +21,7 @@ index 26c341385..36e3297f7 100644
|
|||||||
struct xrt_system_compositor **out_xsysc)
|
struct xrt_system_compositor **out_xsysc)
|
||||||
{
|
{
|
||||||
COMP_TRACE_MARKER();
|
COMP_TRACE_MARKER();
|
||||||
@@ -1183,10 +1184,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev,
|
@@ -1184,10 +1185,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Standard app pacer.
|
// Standard app pacer.
|
||||||
@@ -78,5 +78,5 @@ index 617561c37..e10ba8358 100644
|
|||||||
#else
|
#else
|
||||||
if (!use_null) {
|
if (!use_null) {
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From cbb5662aacc68f28e6628c9fda86a156b08d63a9 Mon Sep 17 00:00:00 2001
|
From 723732637613edd61b51039544ec69eaaddb8a69 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
||||||
Subject: [PATCH 10/11] st/oxr: forward 0 refresh rate
|
Subject: [PATCH 10/11] st/oxr: forward 0 refresh rate
|
||||||
@@ -29,5 +29,5 @@ index b3dac8c8a..27d80be9a 100644
|
|||||||
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
|
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
|
||||||
found = true;
|
found = true;
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
From b659d6c6034b8714a014fc6a5819bb2556c6f0bb Mon Sep 17 00:00:00 2001
|
From 89d5e71f70d70958e8c03a038ab4bc0fc262a455 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Mon, 2 Jun 2025 14:51:11 +0200
|
Date: Mon, 2 Jun 2025 14:51:11 +0200
|
||||||
Subject: [PATCH 11/11] Replace distortion with pixel-aligned foveation
|
Subject: [PATCH 11/11] Replace distortion with pixel-aligned foveation
|
||||||
@@ -13,7 +13,7 @@ Subject: [PATCH 11/11] Replace distortion with pixel-aligned foveation
|
|||||||
6 files changed, 76 insertions(+), 378 deletions(-)
|
6 files changed, 76 insertions(+), 378 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
|
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
|
||||||
index f1c54ed4d..a2f7ba5cc 100644
|
index 46834bde8..e76c69dd0 100644
|
||||||
--- a/src/xrt/compositor/CMakeLists.txt
|
--- a/src/xrt/compositor/CMakeLists.txt
|
||||||
+++ b/src/xrt/compositor/CMakeLists.txt
|
+++ b/src/xrt/compositor/CMakeLists.txt
|
||||||
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
||||||
@@ -652,23 +652,23 @@ index 9ce46fe6f..f3be617bd 100644
|
|||||||
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
||||||
}
|
}
|
||||||
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
||||||
index c06dda63d..a4934890f 100644
|
index 29c645bff..322b0f761 100644
|
||||||
--- a/src/xrt/compositor/util/comp_render_cs.c
|
--- a/src/xrt/compositor/util/comp_render_cs.c
|
||||||
+++ b/src/xrt/compositor/util/comp_render_cs.c
|
+++ b/src/xrt/compositor/util/comp_render_cs.c
|
||||||
@@ -465,30 +465,15 @@ crc_distortion_fast_path(struct render_compute *render,
|
@@ -466,30 +466,15 @@ crc_distortion_fast_path(struct render_compute *render,
|
||||||
world_poses[i] = world_pose;
|
world_poses[i] = world_pose;
|
||||||
}
|
}
|
||||||
|
|
||||||
- if (!d->do_timewarp) {
|
- if (!d->do_timewarp) {
|
||||||
- render_compute_projection( //
|
- render_compute_projection( //
|
||||||
- render, //
|
- render, //
|
||||||
- src_samplers, //
|
- src_samplers, //
|
||||||
- src_image_views, //
|
- src_image_views, //
|
||||||
- src_norm_rects, //
|
- src_norm_rects, //
|
||||||
- d->cs.target_image, //
|
- d->target.cs.image, //
|
||||||
- d->cs.target_unorm_view_y, //
|
- d->target.cs.storage_view_y, //
|
||||||
- d->cs.target_unorm_view_cbcr, //
|
- d->target.cs.storage_view_cbcr, //
|
||||||
- target_viewport_datas); //
|
- target_viewport_datas); //
|
||||||
- } else {
|
- } else {
|
||||||
- render_compute_projection_timewarp( //
|
- render_compute_projection_timewarp( //
|
||||||
- render, //
|
- render, //
|
||||||
@@ -678,23 +678,23 @@ index c06dda63d..a4934890f 100644
|
|||||||
- src_poses, //
|
- src_poses, //
|
||||||
- src_fovs, //
|
- src_fovs, //
|
||||||
- world_poses, //
|
- world_poses, //
|
||||||
- d->cs.target_image, //
|
- d->target.cs.image, //
|
||||||
- d->cs.target_unorm_view_y, //
|
- d->target.cs.storage_view_y, //
|
||||||
- d->cs.target_unorm_view_cbcr, //
|
- d->target.cs.storage_view_cbcr, //
|
||||||
- target_viewport_datas); //
|
- target_viewport_datas); //
|
||||||
- }
|
- }
|
||||||
+ render_compute_projection( //
|
+ render_compute_projection( //
|
||||||
+ render, //
|
+ render, //
|
||||||
+ src_samplers, //
|
+ src_samplers, //
|
||||||
+ src_image_views, //
|
+ src_image_views, //
|
||||||
+ src_norm_rects, //
|
+ src_norm_rects, //
|
||||||
+ d->cs.target_image, //
|
+ d->target.cs.image, //
|
||||||
+ d->cs.target_unorm_view_y, //
|
+ d->target.cs.storage_view_y, //
|
||||||
+ d->cs.target_unorm_view_cbcr, //
|
+ d->target.cs.storage_view_cbcr, //
|
||||||
+ target_viewport_datas); //
|
+ target_viewport_datas); //
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
2.49.0
|
2.50.0
|
||||||
|
|
||||||
|
|||||||
@@ -840,7 +840,7 @@ void wivrn_controller::update_hand_tracking(const from_headset::hand_tracking &
|
|||||||
cnx->set_enabled(joints.hand_id == 0 ? to_headset::tracking_control::id::left_hand : to_headset::tracking_control::id::right_hand, false);
|
cnx->set_enabled(joints.hand_id == 0 ? to_headset::tracking_control::id::left_hand : to_headset::tracking_control::id::right_hand, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value * value)
|
xrt_result_t wivrn_controller::set_output(xrt_output_name name, const xrt_output_value * value)
|
||||||
{
|
{
|
||||||
device_id id;
|
device_id id;
|
||||||
const bool left = device_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER;
|
const bool left = device_type == XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER;
|
||||||
@@ -856,7 +856,7 @@ void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value *
|
|||||||
id = left ? device_id::LEFT_THUMB_HAPTIC : device_id::RIGHT_THUMB_HAPTIC;
|
id = left ? device_id::LEFT_THUMB_HAPTIC : device_id::RIGHT_THUMB_HAPTIC;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return XRT_ERROR_OUTPUT_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -869,7 +869,8 @@ void wivrn_controller::set_output(xrt_output_name name, const xrt_output_value *
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
// Ignore errors
|
return XRT_ERROR_OUTPUT_REQUEST_FAILURE;
|
||||||
}
|
}
|
||||||
|
return XRT_SUCCESS;
|
||||||
}
|
}
|
||||||
} // namespace wivrn
|
} // namespace wivrn
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public:
|
|||||||
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation * out_relation);
|
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation * out_relation);
|
||||||
xrt_result_t get_hand_tracking(xrt_input_name name, int64_t desired_timestamp_ns, xrt_hand_joint_set * out_value, int64_t * out_timestamp_ns);
|
xrt_result_t get_hand_tracking(xrt_input_name name, int64_t desired_timestamp_ns, xrt_hand_joint_set * out_value, int64_t * out_timestamp_ns);
|
||||||
|
|
||||||
void set_output(xrt_output_name name, const xrt_output_value * value);
|
xrt_result_t set_output(xrt_output_name name, const xrt_output_value * value);
|
||||||
|
|
||||||
void set_inputs(const from_headset::inputs &, const clock_offset &);
|
void set_inputs(const from_headset::inputs &, const clock_offset &);
|
||||||
|
|
||||||
|
|||||||
@@ -76,10 +76,12 @@ wivrn_hmd::wivrn_hmd(wivrn::wivrn_session * cnx,
|
|||||||
.supported = {
|
.supported = {
|
||||||
.orientation_tracking = true,
|
.orientation_tracking = true,
|
||||||
.position_tracking = true,
|
.position_tracking = true,
|
||||||
|
.presence = info.presence,
|
||||||
.battery_status = true,
|
.battery_status = true,
|
||||||
},
|
},
|
||||||
.update_inputs = [](xrt_device *) { return XRT_SUCCESS; },
|
.update_inputs = [](xrt_device *) { return XRT_SUCCESS; },
|
||||||
.get_tracked_pose = method_pointer<&wivrn_hmd::get_tracked_pose>,
|
.get_tracked_pose = method_pointer<&wivrn_hmd::get_tracked_pose>,
|
||||||
|
.get_presence = method_pointer<&wivrn_hmd::get_presence>,
|
||||||
.get_view_poses = method_pointer<&wivrn_hmd::get_view_poses>,
|
.get_view_poses = method_pointer<&wivrn_hmd::get_view_poses>,
|
||||||
.get_visibility_mask = method_pointer<&wivrn_hmd::get_visibility_mask>,
|
.get_visibility_mask = method_pointer<&wivrn_hmd::get_visibility_mask>,
|
||||||
.get_battery_status = method_pointer<&wivrn_hmd::get_battery_status>,
|
.get_battery_status = method_pointer<&wivrn_hmd::get_battery_status>,
|
||||||
@@ -147,6 +149,13 @@ void wivrn_hmd::update_battery(const from_headset::battery & new_battery)
|
|||||||
battery = new_battery;
|
battery = new_battery;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xrt_result_t wivrn_hmd::get_presence(bool * out_presence)
|
||||||
|
{
|
||||||
|
*out_presence = presence;
|
||||||
|
|
||||||
|
return XRT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
xrt_result_t wivrn_hmd::get_view_poses(const xrt_vec3 * default_eye_relation,
|
xrt_result_t wivrn_hmd::get_view_poses(const xrt_vec3 * default_eye_relation,
|
||||||
int64_t at_timestamp_ns,
|
int64_t at_timestamp_ns,
|
||||||
uint32_t view_count,
|
uint32_t view_count,
|
||||||
@@ -222,4 +231,10 @@ void wivrn_hmd::update_visibility_mask(const from_headset::visibility_mask_chang
|
|||||||
auto m = visibility_mask.lock();
|
auto m = visibility_mask.lock();
|
||||||
m->at(mask.view_index) = mask.data;
|
m->at(mask.view_index) = mask.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wivrn_hmd::update_presence(bool presence)
|
||||||
|
{
|
||||||
|
U_LOG_I("Updating user presence to %s", presence ? "true" : "false");
|
||||||
|
this->presence = presence;
|
||||||
|
}
|
||||||
} // namespace wivrn
|
} // namespace wivrn
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ class wivrn_hmd : public xrt_device
|
|||||||
view_list views;
|
view_list views;
|
||||||
from_headset::battery battery{};
|
from_headset::battery battery{};
|
||||||
|
|
||||||
|
std::atomic<bool> presence{true};
|
||||||
thread_safe<std::array<std::optional<from_headset::visibility_mask_changed::masks>, 2>> visibility_mask;
|
thread_safe<std::array<std::optional<from_headset::visibility_mask_changed::masks>, 2>> visibility_mask;
|
||||||
|
|
||||||
wivrn::wivrn_session * cnx;
|
wivrn::wivrn_session * cnx;
|
||||||
@@ -69,6 +70,7 @@ public:
|
|||||||
void set_foveated_size(uint32_t width, uint32_t height);
|
void set_foveated_size(uint32_t width, uint32_t height);
|
||||||
|
|
||||||
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation *);
|
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation *);
|
||||||
|
xrt_result_t get_presence(bool * out_presence);
|
||||||
xrt_result_t get_view_poses(const xrt_vec3 * default_eye_relation,
|
xrt_result_t get_view_poses(const xrt_vec3 * default_eye_relation,
|
||||||
int64_t at_timestamp_ns,
|
int64_t at_timestamp_ns,
|
||||||
uint32_t view_count,
|
uint32_t view_count,
|
||||||
@@ -82,5 +84,6 @@ public:
|
|||||||
void update_battery(const from_headset::battery &);
|
void update_battery(const from_headset::battery &);
|
||||||
void update_tracking(const from_headset::tracking &, const clock_offset &);
|
void update_tracking(const from_headset::tracking &, const clock_offset &);
|
||||||
void update_visibility_mask(const from_headset::visibility_mask_changed &);
|
void update_visibility_mask(const from_headset::visibility_mask_changed &);
|
||||||
|
void update_presence(bool presence);
|
||||||
};
|
};
|
||||||
} // namespace wivrn
|
} // namespace wivrn
|
||||||
|
|||||||
@@ -315,6 +315,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptr<wivrn_connecti
|
|||||||
&self->hmd,
|
&self->hmd,
|
||||||
&self->left_hand,
|
&self->left_hand,
|
||||||
&self->right_hand,
|
&self->right_hand,
|
||||||
|
nullptr,
|
||||||
self->xdevs,
|
self->xdevs,
|
||||||
self->xdev_count,
|
self->xdev_count,
|
||||||
false,
|
false,
|
||||||
@@ -577,6 +578,18 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
|
|||||||
auto result = xrt_session_event_sink_push(&xrt_system.broadcast, &event);
|
auto result = xrt_session_event_sink_push(&xrt_system.broadcast, &event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wivrn_session::operator()(from_headset::user_presence_changed && event)
|
||||||
|
{
|
||||||
|
hmd.update_presence(event.present);
|
||||||
|
push_event(
|
||||||
|
{
|
||||||
|
.presence_change = {
|
||||||
|
.type = XRT_SESSION_EVENT_USER_PRESENCE_CHANGE,
|
||||||
|
.is_user_present = event.present,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
void wivrn_session::operator()(from_headset::refresh_rate_changed && event)
|
void wivrn_session::operator()(from_headset::refresh_rate_changed && event)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ public:
|
|||||||
void operator()(from_headset::feedback &&);
|
void operator()(from_headset::feedback &&);
|
||||||
void operator()(from_headset::battery &&);
|
void operator()(from_headset::battery &&);
|
||||||
void operator()(from_headset::visibility_mask_changed &&);
|
void operator()(from_headset::visibility_mask_changed &&);
|
||||||
|
void operator()(from_headset::user_presence_changed &&);
|
||||||
void operator()(from_headset::refresh_rate_changed &&);
|
void operator()(from_headset::refresh_rate_changed &&);
|
||||||
void operator()(audio_data &&);
|
void operator()(audio_data &&);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user