Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-29 Thread Chia-I Wu
2010/5/28 Kristian Høgsberg : > 2010/5/28 Chia-I Wu : > ... >> The right fix is to define a sensible "xorg/drm" platform which has different >> EGLNative{Display,Window,Pixmap}Type than the tentative ones as defined in >> eglplatform.h.  The new platform should be able to fulfill all your >> requir

Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-28 Thread Kristian Høgsberg
> Kristian Høgsberg wrote: > >> Since an application needs to have an EGLDisplay before it can query >> for extensions, the way to discover this extension is to just use >> eglGetProcAddress(). > > Eh... but eglGetProcAddress never returns NULL, does it?  I know > glXGetProcAddress never does. egl

Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-28 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kristian Høgsberg wrote: > Since an application needs to have an EGLDisplay before it can query > for extensions, the way to discover this extension is to just use > eglGetProcAddress(). Eh... but eglGetProcAddress never returns NULL, does it? I kno

Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-28 Thread Kristian Høgsberg
2010/5/28 Chia-I Wu : ... > The right fix is to define a sensible "xorg/drm" platform which has different > EGLNative{Display,Window,Pixmap}Type than the tentative ones as defined in > eglplatform.h.  The new platform should be able to fulfill all your > requirements. I think the "right fix" would

Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-28 Thread Chia-I Wu
2010/5/28 Kristian Høgsberg : > 2010/5/27 Brian Paul : >> Kristian Høgsberg wrote: >>> >>> This patch introduces a new extension to allow different ways to >>> create an EGLDisplay to exist within the same libEGL.so.  The new >>> extension, EGL_MESA_get_display, introduces a new entrypoint: >>> >>>

Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-27 Thread Kristian Høgsberg
2010/5/27 Brian Paul : > Kristian Høgsberg wrote: >> >> This patch introduces a new extension to allow different ways to >> create an EGLDisplay to exist within the same libEGL.so.  The new >> extension, EGL_MESA_get_display, introduces a new entrypoint: >> >>  EGLDisplay eglGetDisplayMESA(EGLint t

Re: [Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-27 Thread Brian Paul
Kristian Høgsberg wrote: This patch introduces a new extension to allow different ways to create an EGLDisplay to exist within the same libEGL.so. The new extension, EGL_MESA_get_display, introduces a new entrypoint: EGLDisplay eglGetDisplayMESA(EGLint type, void *display) which takes an int

[Mesa-dev] [PATCH] egl: Introduce eglGetDisplayMESA()

2010-05-27 Thread Kristian Høgsberg
This patch introduces a new extension to allow different ways to create an EGLDisplay to exist within the same libEGL.so. The new extension, EGL_MESA_get_display, introduces a new entrypoint: EGLDisplay eglGetDisplayMESA(EGLint type, void *display) which takes an integer to identify the type o