mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
fix: droiddeck-session: BL_VKBRIDGE_CEF_ANGLE reaches Chromium through the web helper preload
Steam drops -cef-use-angle: on the bridge the CEF GPU process reports ANGLE_OPENGL (ANGLE on Zink) with -cef-use-angle=vulkan on the command line. An explicit BL_VKBRIDGE_CEF_ANGLE now also becomes --use-gl=angle --use-angle=<backend> on steamwebhelper's own argv (stock process layout kept); unset, nothing changes.
This commit is contained in:
1 parent
30a70a0f7c
commit
e527d4a9f3
2 files changed
+10
-1
No files matched your search
@@ -1029,7 +1029,10 @@ BUSCONF
|
||||
fi
|
||||
[ "${BL_VKBRIDGE_CEF_LOG:-0}" = 1 ] && _bl_cef+=(-cef-enable-logging=stderr -cef-v=1)
|
||||
[ -n "${BL_VKBRIDGE_CEF_EXTRA:-}" ] && read -r -a _bl_cef_extra <<<"$BL_VKBRIDGE_CEF_EXTRA" && _bl_cef+=("${_bl_cef_extra[@]}")
|
||||
export BL_WEBHELPER_ARGS="${BL_VKBRIDGE_WEBHELPER_ARGS:-stock}"
|
||||
_bl_wh_args=stock
|
||||
[ -n "${BL_VKBRIDGE_CEF_ANGLE:-}" ] && _bl_wh_args="--use-gl=angle --use-angle=$BL_VKBRIDGE_CEF_ANGLE"
|
||||
export BL_WEBHELPER_ARGS="${BL_VKBRIDGE_WEBHELPER_ARGS:-$_bl_wh_args}"
|
||||
unset _bl_wh_args
|
||||
echo "== steam: web helper process layout: $BL_WEBHELPER_ARGS (Mali bridge)"
|
||||
fi
|
||||
if [ "${BL_STEAM_UI:-}" != desktop ]; then
|
||||
|
||||
@@ -61,6 +61,12 @@ class WebhelperPreloadTest(unittest.TestCase):
|
||||
args = [WEBHELPER, "--enable-features=A"]
|
||||
self.assertEqual(self.argv(*args, spec="stock"), args)
|
||||
|
||||
def test_angle_switches_are_appended_with_the_gpu_process_kept_out_of_process(self):
|
||||
out = self.argv(WEBHELPER, "-lang=en_US", "--enable-features=A", spec="--use-gl=angle --use-angle=vulkan")
|
||||
self.assertEqual(out, [WEBHELPER, "-lang=en_US", "--use-gl=angle", "--use-angle=vulkan",
|
||||
"--enable-features=A"])
|
||||
self.assertNotIn("--in-process-gpu", out)
|
||||
|
||||
def test_an_empty_setting_means_the_default(self):
|
||||
self.assertIn("--no-zygote", self.argv(WEBHELPER, spec=""))
|
||||
|
||||
|
||||
Reference in new issue
Block a user