summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-1/+1
|
* egl_dri2: Only allocate config if we're going to keep itKristian Høgsberg2010-02-091-36/+31
| | | | Small optimization.
* egl_dri2: Initialize config attributes with visual id and class from XKristian Høgsberg2010-02-091-16/+58
|
* egl_dri2: Allow pbuffer and pixmap surfaces for all configsKristian Høgsberg2010-02-091-8/+7
|
* egl_dri2: Implement eglBindTexImage()Kristian Høgsberg2010-02-091-9/+76
|
* egl_dri2: Use a helper function for looking up and binding extensionsKristian Høgsberg2010-02-091-27/+52
|
* egl_dri2: Fix initialization with EGL_DEFAULT_DISPLAYKristian Høgsberg2010-02-091-6/+6
|
* egl_dri2: Use pkg-config cflags and libs from configure outputKristian Høgsberg2010-02-051-3/+2
| | | | | Running pkg-config in Makefiles is bad form, since it doesn't respect the PKG_CONFIG_PATH value set at ./configure time.
* egl_dri2: Log both driver and core extensionsKristian Høgsberg2010-02-051-1/+4
|
* egl_dri2: Audit and fix errors pathsKristian Høgsberg2010-02-051-49/+72
|
* egl_dri2: Just cast the pointer difference to an intKristian Høgsberg2010-02-051-4/+1
|
* egl: Remove egl_xdri.Chia-I Wu2010-02-056-1440/+0
| | | | | | | egl_xdri steals code from src/glx/x11/. This makes it broken from time to time when there is a bigger change to the GLX code. As egl_dri2 has been merged, which also functions as a DRI2 driver loader, remove egl_xdri for good.
* egl_dri2: Use _EGL_DRIVER_STANDARD_TYPECASTS.Chia-I Wu2010-02-051-29/+2
| | | | It saves the driver from defining the boring typecasts itself.
* egl_dri2: Do not destroy linked resources.Chia-I Wu2010-02-051-3/+3
| | | | A linked resource is stil owned by the display.
* egl_dri2: Fix a snprintf warning.Chia-I Wu2010-02-051-1/+4
| | | | | The subtraction between two pointers has type unsigned int (only on x86-64?), while the format string expects an int.
* egl_dri2: Add a debug print for DRI2 extensions.Chia-I Wu2010-02-051-0/+1
|
* egl: Implement eglCopyBuffers for DRI2, make pixmap and pbuffers actually workKristian Høgsberg2010-02-041-22/+65
|
* egl: Add driver for EGL on X with DRI2Kristian Høgsberg2010-02-042-0/+950
|
* egl: Convert drivers to use typecast macros.Chia-I Wu2010-02-042-61/+10
| | | | | Use macros to define the standard typecasts. This saves lots of typings.
* egl: Initialize display configs with the display.Chia-I Wu2010-01-312-2/+2
| | | | This changes _eglInitConfig to take the display as its argument.
* egl: Initialize display resources with their display.Chia-I Wu2010-01-312-6/+6
| | | | | | | Change _eglInitSurface, _eglInitContext, and _eglInitImage to take an _EGLDisplay instead of an _EGLDriver. This is a more natural form, and plus, the display encodes information such as the extensions supported that might be required for attribute list parsing.
* 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]>