summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
Commit message (Collapse)AuthorAgeFilesLines
* egl: Rename Binding to CurrentContext in _EGLSurface.Chia-I Wu2010-01-301-1/+1
| | | | | A context can be bound to a surface just like it can be bound to a thread. CurrentContext is a more consistent name.
* egl: Clean up header inclusions.Chia-I Wu2010-01-302-2/+2
| | | | Mainly to remove eglcurrent.h and egldisplay.h from eglglobals.h.
* egl: Migrate drivers to use _eglBindContext.Chia-I Wu2010-01-282-13/+28
| | | | | _eglMakeCurrent is a big hammer that is not easy to use. Migrate drivers to use _eglBindContext and un-export _eglMakeCurrent.
* egl: eglMakeCurrent should accept an uninitialized display.Chia-I Wu2010-01-282-50/+67
| | | | | | When no context or surface are given, the display is allowed to be uninitialized. Most drivers cannot handle an uninitialized display. But they are updated to at least throw a fatal message.
* egl: Remove _eglGetCurrentSurface and _eglGetCurrentDisplay.Chia-I Wu2010-01-261-2/+1
| | | | | They have little use in drivers since drivers need to work for multiple current contexts.
* egl/xdri: Update with glxclient.h change.Chia-I Wu2010-01-261-1/+0
| | | | | __glXFindDisplay is no longer static since 7a9329ba99fe1242c07fbf4fd04e7a4dbeba2e72.
* egl: Native types are renamed in EGL 1.3.Chia-I Wu2010-01-252-5/+8
| | | | Rename Native*Type to EGLNative*Type.
* egl: Install drivers to ${libdir}/egl.Chia-I Wu2010-01-231-2/+2
| | | | | Install EGL drivers to EGL_DRIVER_INSTALL_DIR, which is default to ${libdir}/egl.
* egl: Remove the demo driver.Chia-I Wu2010-01-222-321/+0
| | | | | The demo driver has outdated. It is suggested to look at any of the drivers that is functioning.
* egl_xdri: Add support for DRISW.Chia-I Wu2010-01-223-15/+42
| | | | | Try DRISW if both DRI2 and DRI fail. It can also be forced by setting EGL_SOFTWARE. When DRISW is used, single-buffered modes are ignored.
* egl_xdri: Flush commands on context switch and buffer swap.Chia-I Wu2010-01-221-6/+24
| | | | The corresponding DRI functions does not flush for us.
* egl_xdri: Report only OpenGL support.Chia-I Wu2010-01-221-9/+2
| | | | | It reported OpenGL ES support because some demos did not set EGL_RENDERABLE_TYPE correctly. The demos are fixed.
* egl_xdri: Do not reinitialize in __glXInitialize.Chia-I Wu2010-01-223-25/+78
| | | | | | __glXInitialize should return the same GLX display for the same X display. This issue is triggered by a35f6bb207efe3c959bbd16a37f2049e5aceeea9.
* egl_glx: Report only OpenGL support.Chia-I Wu2010-01-221-10/+3
| | | | | It reported OpenGL ES support because some demos did not set EGL_RENDERABLE_TYPE correctly. The demos are fixed.
* egl: Update driver Makefiles.Chia-I Wu2010-01-222-134/+23
| | | | Update to use the new Makefile.template.
* egl: Add Makefile.template for EGL drivers.Chia-I Wu2010-01-221-0/+51
|
* egl: Add _EGLDriver as the first argument to GetProcAddress.Chia-I Wu2010-01-122-2/+2
| | | | | The rest of the driver API has it as the first argument. It should be there so that a driver has access to itself.
* egl_xdri: Fix build breakage.Chia-I Wu2010-01-121-1/+1
| | | | | driScreen->swapBuffers takes 3 more arguments since daf7fe69f7bd0caa955d30b43fc35b7ce0069b6b.
* Remove leftover __DRI{screen,drawable,context}Private referencesKristian Høgsberg2010-01-041-13/+13
| | | | | | | | | As part of the DRI driver interface rewrite I merged __DRIscreenPrivate and __DRIscreen, and likewise for __DRIdrawablePrivate and __DRIcontextPrivate. I left typedefs in place though, to avoid renaming all the *Private use internal to the driver. That was probably a mistake, and it turns out a one-line find+sed combo can do the mass rename. Better late than never.
* egl_glx: Add support for eglWaitClient and eglWaitNative.Chia-I Wu2009-10-221-0/+17
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* egl_glx: Clean up eglGetProcAddress.Chia-I Wu2009-10-221-16/+1
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* egl_glx: Clean up context functions.Chia-I Wu2009-10-221-19/+5
| | | | | | This lifts the requirement that a context must be direct. Signed-off-by: Chia-I Wu <[email protected]>
* egl_glx: Clean up surface functions.Chia-I Wu2009-10-221-99/+106
| | | | | | | | Separete Drawable and GLXDrawable. Add support for pbuffer and pixmap surfaces on GLX <= 1.3. Remove surface binding code that will never work. Signed-off-by: Chia-I Wu <[email protected]>
* egl_glx: Clean up the initialization code.Chia-I Wu2009-10-221-287/+371
| | | | | | | Proper detection of GLX extensions. Convert fbconfigs or visuals in a more unified way and validate the resulting configs. Signed-off-by: Chia-I Wu <[email protected]>
* egl_xdri: Report full list of supported configs.Chia-I Wu2009-09-291-31/+66
| | | | | | | Call _eglConfigFromContextModesRec to convert __GLcontextModes to _EGLConfig. Single-buffered configs are no longer skipped. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Introduce config keys.Chia-I Wu2009-09-291-1/+1
| | | | | | | | | | Config keys are almost config attributes. A valid config attribute is a valid config key, but a valid config key may not be a valid config attribute. This commit does not distinguish the differences. Signed-off-by: Chia-I Wu <[email protected]>
* egl_glx: Make fbconfigs and visuals per display.Chia-I Wu2009-08-261-114/+135
| | | | | | | This is to allow a driver to drive multiple displays. Remove the use of _EGL_PLATFORM_X and obsolete code along the way. Signed-off-by: Chia-I Wu <[email protected]>
* egl_xdri: Revive the driver.Chia-I Wu2009-08-246-832/+953
| | | | | | | | | egl_xdri does not compile for some time. This commit revives the driver. It no longer depends on libGL.so for GLX related functions. Instead, it uses code from src/glx/ directly. Both DRI and DRI2 are supported. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Remove eglhash.c and eglhash.h.Chia-I Wu2009-08-181-1/+0
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* egl: Some per-driver data should be per-display.Chia-I Wu2009-08-182-10/+27
| | | | | | | Move some fields of _EGLDriver to _EGLDisplay. It also becomes unnecessary to pass _EGLDisplay to drivers when _eglMain is called. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Overhaul driver API.Chia-I Wu2009-08-182-160/+105
| | | | | | | | | | | | 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 <[email protected]>
* egl: Add depend and depend.bak to clean targetPauli Nieminen2009-08-091-0/+1
| | | | Signed-off-by: Pauli Nieminen <[email protected]>
* egl: Replace IsBound by a pointer to the binding.Chia-I Wu2009-08-034-6/+6
| | | | | | | | | IsBound tells if a context or surface is current. What it does not tell is, to which thread a context is current, or to which context a surface is current. This commit replaces IsBound by a pointer to the binding thread or context. Signed-off-by: Chia-I Wu <[email protected]>
* Add missing X11_INCLUDES to egl/drivers/demo and egl/main.Peter Hutterer2009-07-211-1/+1
| | | | | | | | | Compiling mesa on a system with no X headers installed in the default include paths fails due to missing X11 includes. The header includes are picked up by configure but not applied. Signed-off-by: Peter Hutterer <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* egl: Remove redundant DeletePending flag.Chia-I Wu2009-07-174-29/+6
| | | | | | | | A context or surface that is neither linked to a display nor current to a thread should be destroyed. Therefore, an unlinked context or surface implies a pending delete automatically. Signed-off-by: Chia-I Wu <[email protected]>
* egl: Use the link functions to manage resources.Chia-I Wu2009-07-174-45/+66
| | | | | | | | This commit uses the newly introduced link functions to manage EGL contexts and surfaces. As a result of this, the API for drivers are changed. All drivers are updated for the change. Signed-off-by: Chia-I Wu <[email protected]>
* Use separate $(MINSTALL) for installing librariesDan Nicholson2009-06-013-3/+3
| | | | | | | | | | | | | The special feature of bin/minstall to copy symlinks is only ever needed when installing libraries which may have .so symlinks. All the headers and directories can use a normal install program. These two modes are separated as $(INSTALL) and $(MINSTALL) to allow the user (or autoconf) to override installing normal files as they please. An autoconf check for the install program has been added and will be used in preference to minstall when available. Fixes bug 16053.
* egl: Don't install demodriverDan Nicholson2009-04-291-2/+0
| | | | | | | I don't think anyone besides a developer would ever want to use the demo egl driver. Furthermore, egl would only ever load demodriver if it was set via EGL_DRIVER in the environment. In that case, I think you can point it to your mesa source directory.
* egl: Fix newline typo in MakefilesCarl-Johan Kjellander2009-03-263-3/+6
|
* egl: fix commentAlan Hourihane2009-03-191-3/+3
|
* egl: try harder for eglGetProcAddress()Alan Hourihane2009-03-191-1/+14
|
* egl: glx updates for FBconfigsAlan Hourihane2009-02-191-12/+18
|
* egl: error checkingAlan Hourihane2009-02-191-2/+5
|
* Add install target for eglJohannes Engel2009-02-115-1/+15
| | | | | Signed-off-by: Johannes Engel <[email protected]> Acked-by: Jakob Bornecrantz <[email protected]>
* egl: fix makecurrent with null drawable/contextAlan Hourihane2009-01-141-1/+1
|
* egl: fix egl closureAlan Hourihane2008-12-231-2/+29
|
* egl: fix startup query versionAlan Hourihane2008-12-231-4/+8
|
* egl: support GLXFBConfigs, pbuffers and pixmaps.Alan Hourihane2008-12-231-13/+246
|
* disable OPENGL_BITAlan Hourihane2008-10-271-4/+4
|
* egl: check for null ptr/nameBrian Paul2008-10-021-1/+4
|