-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gsdx egl: rewrite the EGL implementation
Split code in 2 parts * Base class (GSWndEGL) that implement the core EGL and GL context * Derived class (GSWndEGL_X11/GSWndEGL_WL) that implement the backend to handle native resources Note: Most backend code is only useful for GSopen1/PS1 mode. GSopen2 only requires the AttachNativeWindow implementation Code is based around EGL_EXT_platform extension that allow to select the platform at runtime. Note: I think the extension was integrated in EGL 1.5 The X11 backend was mostly converted to XCB The wayland backend is only a placeholder for future code I don't know if MS windows is/could be supported with EGL_EXT_platform API Code validated on Mesa. Proprietary drivers aren't yet tested.
- Loading branch information
Showing
3 changed files
with
288 additions
and
94 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
Oops, something went wrong.
d9e43b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EGL_EXT seems just a linux thing.
d9e43b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well first goal is to have EGL on Linux by default. And drop GLX. Then maybe we could look at EGL on windows. EGL is more important on Linux as it would bring us thread safety. And Wayland support (in long term).