Re: [Mesa-dev] [PATCH 0/8] add support for EGL_EXT_device_{base, query, enumeration}

2016-01-28 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 7/8] egldevice: add simple eglQueryDeviceAttribEXT implementation

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 5/8] egldevice: add EGLDevice checking helper function

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 2/8] egldevice: use _EGLDevice struct and keep a list of them in globals

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 6/8] egldevice: implement eglQueryDeviceStringEXT

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 0/8] add support for EGL_EXT_device_{base, query, enumeration}

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 4/8] egldevice: implement eglQueryDevicesEXT using udev

2015-07-24 Thread 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/

[Mesa-dev] [PATCH 3/8] egldevice: copy udev dlopen code in from loader.c

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 8/8] egldevice: implement eglQueryDisplayAttribEXT

2015-07-24 Thread Jonny Lamb
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 +++

[Mesa-dev] [PATCH 1/8] egl: add initial boilerplate for EGL_EXT_device_{base, query, enumeration}

2015-07-24 Thread Jonny Lamb
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

[Mesa-dev] [PATCH 1/2] egl: add EGL_MESA_transparent_alpha extension

2015-02-23 Thread Jonny Lamb
+ +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

[Mesa-dev] [PATCH 2/2] egl: implement EGL_MESA_transparent_alpha for x11 and wayland

2015-02-23 Thread Jonny Lamb
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 +++