Chia-I Wu
3e6139d158
egl: Add _EGLDriver as the first argument to GetProcAddress.
The rest of the driver API has it as the first argument. It should be
there so that a driver has access to itself.
15 vuotta sitten
Chia-I Wu
6c21c8862b
egl: Rework the synchronization primitives.
This adds error checking to the synchronization primitives. And
eglWaitGL is now implemented by eglWaitClient.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
16 vuotta sitten
Chia-I Wu
57da499d7b
egl: Rework eglSwapInterval.
This adds error checking to eglSwapInterval and clamps the swap
interval.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
16 vuotta sitten
Chia-I Wu
2f2cf461c5
egl: Overhaul driver API.
The motivation is so that drivers do not need to look up and check for
bad display, context, and etc. It also becomes unnecessary for drivers
to call the link functions.
This commit makes eglapi.[ch] do the lookup and check. As a result, the
driver API is overhauled, and almost all sources and drivers need
update. The updates are mainly find and replace with human brains.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
16 vuotta sitten
Brian Paul
e3805cad0d
egl: new eglGetProcAddress() code
The idea is to pass the call down to the device driver where an API-specific
query can be made. Untested.
17 vuotta sitten
Brian Paul
b2006a40eb
some initial EGL 1.2 work
19 vuotta sitten
Brian Paul
4882279633
Some initial per-thread support.
Rename eglShowSurfaceMESA to eglShowScreenSurfaceMESA.
20 vuotta sitten
Brian Paul
daf585d0f0
Move all the EGL API function pointers into a new _egl_api struct.
20 vuotta sitten
Jon Smirl
485528f2ac
More EGL prep. No impact on anything outside of EGL
20 vuotta sitten
Brian Paul
198d6d05b0
remove eglQueryDisplayMESA()
20 vuotta sitten
Brian Paul
f9bad3dfea
use EGLint instead of unsigned long for eglCopyContextMESA, added comments
20 vuotta sitten
Brian Paul
51ac95ba89
added boolean extension flags to _EGLDriver
20 vuotta sitten
Jon Smirl
1c606a9aa1
Add empty placeholder for eglCopyContextMESA
20 vuotta sitten
Jon Smirl
7012d01d88
First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.
20 vuotta sitten
Brian Paul
c22990c29a
sync with latest EGL_MESA_screen_surface spec (EGLScreenMESA handles)
20 vuotta sitten
Brian Paul
adbff7e977
initial EGL code
20 vuotta sitten