Mapsd: move on the CPU (#30349)

* mapsd -> cpu

* link directly to mesa

* Fix gitignore

* without launcher script

* dont change that

* dont need that

* add to files_common

* rename to configure cpu rendering

* without a symlink!

* update time refs

* update ref

* update ref

* remove duplicate include

* bump up again

---------

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
Justin Newberry
2023-11-06 12:04:53 -05:00
committed by GitHub
parent df79ec5314
commit bdf2fa0f83
8 changed files with 31 additions and 21 deletions
+2
View File
@@ -34,6 +34,8 @@ public:
static bool get_ssh_enabled() { return false; }
static void set_ssh_enabled(bool enabled) {}
static void config_cpu_rendering();
static bool PC() { return false; }
static bool TICI() { return false; }
static bool AGNOS() { return false; }
+5
View File
@@ -20,4 +20,9 @@ public:
snprintf(volume_str, sizeof(volume_str), "%.3f", volume);
std::system(("pactl set-sink-volume @DEFAULT_SINK@ " + std::string(volume_str)).c_str());
}
static void config_cpu_rendering() {
setenv("QT_QPA_PLATFORM", "offscreen", 1);
setenv("__GLX_VENDOR_LIBRARY_NAME", "mesa", 1);
}
};
+5
View File
@@ -103,4 +103,9 @@ public:
static bool get_ssh_enabled() { return Params().getBool("SshEnabled"); }
static void set_ssh_enabled(bool enabled) { Params().putBool("SshEnabled", enabled); }
static void config_cpu_rendering() {
setenv("QT_QPA_PLATFORM", "eglfs", 1); // offscreen doesn't work with EGL/GLES
setenv("LP_NUM_THREADS", "0", 1); // disable threading so we stay on our assigned CPU
}
};