From 120a5febd4078a318f7b62b9e4eab1a7a1d54f36 Mon Sep 17 00:00:00 2001 From: Xnick417x Date: Sun, 21 Jun 2026 04:11:08 +0000 Subject: [PATCH] Restore Kopper for OpenGL containers; fixes GL init on ARM64EC Remove the container-wide LIBGL_KOPPER_DISABLE env var. Disabling Kopper blocked Zink's GL-on-Vulkan presentation, preventing OpenGL from initializing under ARM64EC. The Steam webhelper still sets LIBGL_KOPPER_DISABLE in its own process for CEF, so that path is unaffected. Also use hex 0x5143 for the Qualcomm vendor-id check in the BCn compute gate. --- app/src/main/runtime/display/XServerDisplayActivity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/runtime/display/XServerDisplayActivity.java b/app/src/main/runtime/display/XServerDisplayActivity.java index d6e9ed01c..030990658 100644 --- a/app/src/main/runtime/display/XServerDisplayActivity.java +++ b/app/src/main/runtime/display/XServerDisplayActivity.java @@ -6976,7 +6976,6 @@ private void extractGraphicsDriverFiles() { } envVars.put("GALLIUM_DRIVER", "zink"); - envVars.put("LIBGL_KOPPER_DISABLE", "true"); if (firstTimeBoot) { Log.d("XServerDisplayActivity", "First time container boot, re-extracting libs"); @@ -7085,14 +7084,14 @@ private void extractGraphicsDriverFiles() { switch (bcnEmulation) { case "auto" -> { - if ("compute".equals(bcnEmulationType) && GPUInformation.getVendorID(null, null) != 20803) { + if ("compute".equals(bcnEmulationType) && GPUInformation.getVendorID(null, null) != 0x5143) { envVars.put("ENABLE_BCN_COMPUTE", "1"); envVars.put("BCN_COMPUTE_AUTO", "1"); } envVars.put("WRAPPER_EMULATE_BCN", "3"); } case "full" -> { - if ("compute".equals(bcnEmulationType) && GPUInformation.getVendorID(null, null) != 20803) { + if ("compute".equals(bcnEmulationType) && GPUInformation.getVendorID(null, null) != 0x5143) { envVars.put("ENABLE_BCN_COMPUTE", "1"); envVars.put("BCN_COMPUTE_AUTO", "0"); }