Skip to content

Commit

Permalink
fix(DefaultLauncher): also set LIBGL_KOPPER_DRI2=1 for Zink mode
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MingcongBai committed Dec 25, 2024
1 parent 4c6fdf4 commit 97156dd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,13 @@ private Map<String, String> getEnvVars() {
break;
case 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;
}
}
Expand Down

0 comments on commit 97156dd

Please sign in to comment.