mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-15 10:10:07 +00:00
t/common: Print what driver is being used in Lighthouse driver
This commit is contained in:
parent
c463214157
commit
b4e901f674
|
@ -278,6 +278,11 @@ lighthouse_estimate_system(struct xrt_builder *xb,
|
||||||
if (have_survive_drv && have_vive_drv) {
|
if (have_survive_drv && have_vive_drv) {
|
||||||
// We have both drivers - default to libsurvive, but if the user asks specifically for vive we'll give
|
// We have both drivers - default to libsurvive, but if the user asks specifically for vive we'll give
|
||||||
// it to them
|
// it to them
|
||||||
|
if (vive_over_survive) {
|
||||||
|
LH_DEBUG("Using driver vive (over survive)!");
|
||||||
|
} else {
|
||||||
|
LH_DEBUG("Using driver survive (both)!");
|
||||||
|
}
|
||||||
lhs->use_libsurvive = !vive_over_survive;
|
lhs->use_libsurvive = !vive_over_survive;
|
||||||
} else if (have_survive_drv) {
|
} else if (have_survive_drv) {
|
||||||
// We only have libsurvive - don't listen to the env var
|
// We only have libsurvive - don't listen to the env var
|
||||||
|
@ -285,8 +290,10 @@ lighthouse_estimate_system(struct xrt_builder *xb,
|
||||||
if (vive_over_survive) {
|
if (vive_over_survive) {
|
||||||
LH_WARN("Asked for vive driver, but it isn't built. Using libsurvive.");
|
LH_WARN("Asked for vive driver, but it isn't built. Using libsurvive.");
|
||||||
}
|
}
|
||||||
|
LH_DEBUG("Using driver survive (only built)!");
|
||||||
lhs->use_libsurvive = true;
|
lhs->use_libsurvive = true;
|
||||||
} else if (have_vive_drv) {
|
} else if (have_vive_drv) {
|
||||||
|
LH_DEBUG("Using driver vive (only built)!");
|
||||||
// We only have vive
|
// We only have vive
|
||||||
lhs->use_libsurvive = false;
|
lhs->use_libsurvive = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue