Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67676
---
include/EGL/eglmesaext.h| 5 +
src/egl/drivers/dri2/platform_wayland.c | 9 +++--
src/egl/drivers/dri2/platform_x11.c | 22 +-
src/egl/main/eglapi.c | 13 +++
+
+Contributors
+
+Jonny Lamb
+
+Contacts
+
+Jonny Lamb
+
+Status
+
+Draft
+
+Version
+
+Version 4, 2015-02-23
+
+Number
+
+EGL Extension #XXX
+
+Extension Type
+
+EGL display extension
+
+Dependencies
+
+This extension is written against the wording of the 2014.08.17 revision
rticularly
costly so leave it as is for now.
Right now this only works with the egl_dri2 driver.
Signed-off-by: Jonny Lamb
---
src/egl/drivers/dri2/egl_dri2.c | 9 ++
src/egl/main/eglapi.c | 13 +++-
src/egl/main/egldevice.c| 72 +++
Signed-off-by: Jonny Lamb
---
src/egl/main/eglapi.c | 47 +++
src/egl/main/eglglobals.c | 5 +
2 files changed, 52 insertions(+)
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 824e51e..6c1e6c7 100644
--- a/src/egl/main
This code is copied nearly verbatim from src/loader/loader.c. It
should be put somewhere so both files can reference the same code
without copy & pasting.
Signed-off-by: Jonny Lamb
---
src/egl/main/egldevice.c | 54
1 file changed, 54 insert
Right now the _EGLDevice struct has nothing of interest apart from a
next pointer but this is what will be opaquely returned to clients in
eglQueryDevicesEXT.
The _EGLDeviceInfo struct is held in _eglGlobal and thanks to atexit()
it is cleaned up appropriately too.
Signed-off-by: Jonny Lamb
Enumerate udev devices by using:
SUBSYSTEM=="drm"
DEVTYPE=="drm_minor"
TAG=="master-of-seat"
Signed-off-by: Jonny Lamb
---
src/egl/main/eglapi.c| 7 ++-
src/egl/main/egldevice.c | 161 ++-
src/egl/main/
EGL_EXT_platform_query only defines one value for at the
moment, so just implement that.
Signed-off-by: Jonny Lamb
---
src/egl/main/eglapi.c| 9 -
src/egl/main/egldevice.c | 30 ++
src/egl/main/egldevice.h | 4
3 files changed, 42 insertions(+), 1
can get an EGLDisplay for a given
EGLDeviceEXT.
Thanks,
Jonny Lamb (8):
egl: add initial boilerplate for
EGL_EXT_device_{base,query,enumeration}
egldevice: use _EGLDevice struct and keep a list of them in globals
egldevice: copy udev dlopen code in from loader.c
egldevice: implement
EGL_EXT_device_query itself doesn't define any valid values for
so leave this function looking simple for values in the
future.
Signed-off-by: Jonny Lamb
---
src/egl/main/eglapi.c| 9 -
src/egl/main/egldevice.c | 17 +
src/egl/main/egldevice.h | 5 +
3
This is useful to ensure EGLDevices given to functions (such as
eglQueryDeviceAttrib or eglQueryDeviceString) are valid.
Signed-off-by: Jonny Lamb
---
src/egl/main/eglapi.c| 6 ++
src/egl/main/egldevice.c | 26 ++
src/egl/main/egldevice.h | 4
3 files
On 27/01/16 21:39, Dave Airlie wrote:
On 25 July 2015 at 00:19, Jonny Lamb wrote:
Here is an initial patchset implementing EGL_EXT_device_base (in
practice nothing to do), device_enumeration (for listing devices), and
device_query (for querying information about a device).
I worked on this
12 matches
Mail list logo