-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EGLX: Optional hacks to support Chrome/ANGLE
Chrome/ANGLE attempts to reproduce the visual matching algorithm from GTK v3.15.2 through 4.3.1 (refer to 398e941), but it does so by sending raw GLX requests to and receiving raw GLX replies from the X server. Thus, there is nothing for VirtualGL to interpose, and Chrome picks "system" and "RGBA" visuals based solely on OpenGL rendering attributes assigned to the 2D X server visuals by the 2D X server's GLX implementation, not on OpenGL rendering attributes assigned to the visuals by VirtualGL. As a result, the RGBA visual that Chrome picks is not associated with any EGLConfig that VirtualGL returns. To work around this, two hacks can now be enabled by setting an undocumented environment variable (VGL_CHROMEHACK) to 1: - glxvisual::buildVisAttribTable() scores the 2D X server visuals in the same way that Chrome does, preferring an alpha-enabled visual without a depth buffer, a stencil buffer, or multisampling. - The EGL/X11 interposer chooses the highest-scoring visual and assigns its visual ID to the value of the EGL_NATIVE_VISUAL_ID attribute for any EGLConfigs that have an 8-bit alpha channel. VGL_CHROMEHACK automatically enables VGL_PROBEGLX. This should allow VirtualGL to work with Chrome v112+ if Chrome is passed '--disable-seccomp-filter-sandbox --use-angle=gl-egl'. Refer to #229
- Loading branch information
1 parent
211f719
commit 5a91ca0
Showing
5 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters