fix(DefaultLauncher): also set LIBGL_KOPPER_DRI2=1 for Zink mode (#3503)

The amdgpu DDX is missing support for modifiers, causing Zink to fail.
Disable DRI3 to workaround this issue.

Link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10093

Signed-off-by: Mingcong Bai <jeffbai@aosc.io>
This commit is contained in:
白铭骢 (Mingcong Bai) 2024-12-25 03:55:42 -08:00 committed by GitHub
parent 4c6fdf49de
commit cb2b3525b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -496,6 +496,13 @@ public class DefaultLauncher extends Launcher {
break; break;
case ZINK: case ZINK:
env.put("MESA_LOADER_DRIVER_OVERRIDE", "zink"); env.put("MESA_LOADER_DRIVER_OVERRIDE", "zink");
/**
* The amdgpu DDX is missing support for modifiers, causing Zink to fail.
* Disable DRI3 to workaround this issue.
*
* Link: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10093
*/
env.put("LIBGL_KOPPER_DRI2", "1");
break; break;
} }
} }