summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
Commit message (Collapse)AuthorAgeFilesLines
* egl_dri2: Return NULL when xcb_get_geometry_reply fails.Chia-I Wu2011-02-201-0/+1
| | | | This should fix bug #33946.
* egl_dri2: add swrastHaitao Feng2011-02-165-52/+395
| | | | | | | | This enables the egl_dri2 driver to load swrast driver for software rendering. It could be used when hardware dri2 drivers are not available, such as in VM. Signed-off-by: Haitao Feng <[email protected]>
* egl_dri2: add nouveau support.Dave Airlie2011-02-141-0/+8
| | | | | | | but really wtf? all these PCI IDs need to be ripped out of here, its totally unscalable and the drivers already have this info so could export it some better way. tested by Darxus on #wayland.
* egl_dri2: rename loader_extension to dri2_loader_extensionHaitao Feng2011-02-103-18/+18
| | | | Signed-off-by: Haitao Feng <[email protected]>
* egl_dri2 wayland: Sync front buffer releaseBenjamin Franzke2011-02-102-26/+67
|
* egl_dri2: Always unbind old contextsBenjamin Franzke2011-02-101-10/+11
| | | | | | This fixes __DRIdrawable refcounting. Binding a context increases their refcount, so we need to decrease it.
* egl_dri2: Use double buffering for window surfacesBenjamin Franzke2011-02-105-40/+110
|
* wayland-egl: Force roundtrips to get device name and authenticate correctlyKristian Høgsberg2011-02-071-4/+28
| | | | | | | | If the client hasn't done the initial wl_display_iterate() at the time we initialize the display, we have to do that in platform_wayland.c. Make sure we detect that correctly instead of dup()ing fd=0, and use the sync callback to make sure we don't wait forever for authorization that won't happen.
* egl_dri2: Add wayland platformBenjamin Franzke2011-02-074-0/+644
|
* egl_dri2: Export dri2_get_driver_for_fdBenjamin Franzke2011-02-072-1/+4
|
* egl_dri2: Enable pixmap bind_to_texture according to the extensionBenjamin Franzke2011-02-071-1/+2
|
* egl_dri2: Add new radeon pci idsAlex Deucher2011-02-031-1/+40
| | | | Signed-off-by: Alex Deucher <[email protected]>
* egl_dri2: Split out drm platform implementation to a separate fileKristian Høgsberg2011-02-034-595/+640
|
* egl_dri2: Split out x11 platform codeKristian Høgsberg2011-02-034-826/+936
|
* egl_dri2: Export glapi symbols for DRI drivers.Chia-I Wu2011-01-302-10/+27
| | | | | | | | | | | | When an app loads libEGL.so dynamically with RTLD_LOCAL, loading DRI drivers would fail because of missing glapi symbols. This commit makes egl_dri2 load libglapi.so with RTLD_GLOBAL to export glapi symbols for future symbol resolutions. The same trick can be found in GLX. However, egl_dri2 can only do so when --enable-shared-glapi is given. Because, otherwise, both libGL.so and libglapi.so define glapi symbols and egl_dri2 cannot tell which library to load.
* egl: Improve driver selection.Chia-I Wu2011-01-132-0/+8
| | | | | | | | | | | | | | | | | | | | | | | The idea is to be able to match a driver using the following order try egl_gallium with hw renderer try egl_dri2 try egl_gallium with sw renderer try egl_glx given the module list egl_gallium egl_dri2 egl_glx For that, UseFallback initialization option is added. The module list is matched twice: with the option unset and with the option set. In the first pass, egl_gallium skips its sw renderer and egl_glx rejects to initialize since UseFallback is not set. In the second pass, egl_gallium skips its hw renderer and egl_dri2 rejects to initialize since UseFallback is set. The process stops at the first driver that initializes the display.
* egl: Simplify driver matching.Chia-I Wu2011-01-132-0/+7
| | | | | | Add initialization options that drv->API.Initialize should support. Replace drv->Probe by TestOnly initialization option and simplify _eglMatchDriver.
* egl: Cleanup _EGLDisplay initialization.Chia-I Wu2011-01-132-23/+19
| | | | | Reorder/rename and document the fields that should be set by the driver during initialization. Drop the major/minor arguments from drv->API.Initialize.
* egl_dri2: Fix eglGetProcAddress.Chia-I Wu2011-01-121-1/+2
| | | | The driver struct is zeroed after dri2_load. Oops.
* egl: Make egl_dri2 and egl_glx built-in drivers.Chia-I Wu2011-01-105-12/+32
| | | | | These two drivers are small in size. Making them built-in should simplify packaging.
* egl_glx: Load libGL dynamically.Chia-I Wu2011-01-102-107/+238
| | | | | | This is a step forward for compatibility with really old GLX. But the real reason for making this change now is so that we can make egl_glx a built-in driver without having to link to libGL.
* egl_dri2: Look up _glapi_get_proc_address dynamically.Chia-I Wu2011-01-102-16/+46
| | | | | | | | | In preparation for making egl_dri2 built-in. It also handles symbol lookup error: /usr/local/lib/egl/egl_dri2.so: undefined symbol: _glapi_get_proc_address more gracefully.
* dri2: release texture image.Juan Zhao2011-01-091-4/+25
| | | | | | Add release function for texture_from_pixmap extension. Some platform need to release texture image for texture_from_pixmap extension, add this interface for those platforms.
* egl_dri2: Fix one context, multiple surfaces.Chia-I Wu2010-11-241-1/+5
| | | | | | | | | | | | | | When a context was made current to another surface, the old code did this dri2_dpy->core->bindContext(cctx, ddraw, rdraw); dri2_dpy->core->unbindContext(old_cctx); and there will be no current context due to the second line. unbindContext should be called only when bindContext is not. This fixes a regression since d19afc57. Thanks to Neil Roberts for noticing the issue and creating a test case.
* egl_dri2: Add missing intel chip ids.Robert Hooker2010-11-171-0/+12
| | | | Signed-off-by: Robert Hooker <[email protected]>
* egl_dri2: Fix __DRI_DRI2 version 1 support.Chia-I Wu2010-11-101-1/+1
| | | | Correctly set __DRI_API_OPENGL flag.
* egl_dri2: Add radeon chip idsAlex Deucher2010-11-081-0/+427
|
* egl_dri2: Fix a typo that make glFlush be called at wrong time.Chia-I Wu2010-10-261-1/+1
| | | | | | We want to call glFlush when there is a current context. That is, old_ctx. This is a regression introduced by d19afc57fe49816f3f3290410e0124d326577be2.
* Ensure -L$(TOP)/$(LIB_DIR) appears in link line before any -L in $LDFLAGSJon TURNEY2010-10-241-2/+2
| | | | | | | | | | Ensure -L$(TOP)/$(LIB_DIR) (the staging dir for build products), appears in the link line before any -L in $LDFLAGS, so that we link driver we are building with libEGL we have just built, and not an installed version [olv: make a similar change to targets/egl] Signed-off-by: Jon TURNEY <[email protected]>
* egl: Use reference counting to replace IsLinked or IsBound.Chia-I Wu2010-10-232-18/+49
| | | | | Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update _eglBindContext and drivers to do reference counting.
* egl: Minor changes to the _EGLConfig interface.Chia-I Wu2010-10-232-2/+2
| | | | | Mainly to rename _eglAddConfig to _eglLinkConfig, along with a few clean ups.
* egl: Parse image attributes with _eglParseImageAttribList.Chia-I Wu2010-10-221-81/+30
| | | | Avoid code duplications.
* egl: Move attributes in _EGLImage to _EGLImageAttribs.Chia-I Wu2010-10-221-4/+4
| | | | | | The opaque nature of EGLImage implies that extensions almost always define their own attributes. Move attributes in _EGLImage to _EGLImageAttribs and add a helper function to parse attribute lists.
* egl_glx: Fix borken driver.Chia-I Wu2010-10-221-107/+185
| | | | | The driver was broken since 6eda3f311bc24999835003e404d5eda5599bc5de. All configs fail to pass _eglValidateConfig.
* egl_glx: Drop the use of [SG]ET_CONFIG_ATTRIB.Chia-I Wu2010-10-221-21/+14
| | | | | _EGLConfig can be directly dereferenced now. Since egl_glx is the last user of the macros, drop the macros too.
* egl_dri2: Drop the use of _egl[SG]etConfigKey.Chia-I Wu2010-10-221-11/+9
| | | | _EGLConfig can be directly dereferenced now.
* egl: Fix several 'comparison between signed and unsigned integer' warningsIan Romanick2010-09-242-4/+6
| | | | I hate GCC for requiring the (int) cast on sizeof.
* egl_glx: Silence piles of 'unused variable' warningsIan Romanick2010-09-241-0/+27
|
* EGL DRI2: Silence 'missing initializer' warningsIan Romanick2010-09-241-2/+2
|
* EGL DRI2: Silence piles of 'unused variable' warningsIan Romanick2010-09-241-0/+46
|
* dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg2010-09-221-4/+3
| | | | | We will typically have a current context when we need to lookup the image, but the lookup implementation don't need it so drop it.
* dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg2010-09-221-4/+2
| | | | | | | We can't expect to have a context when this is called, and we don't need one so just require a __DRIscreen instead. Reported by Yu Dai <[email protected]>
* EGL DRI2: 0xa011 is Pineview not IronlakeJesse Barnes2010-09-131-1/+1
| | | | Point about needing a better way to do this validated.
* EGL DRI2: add PCI ID for Ironlake mobileJesse Barnes2010-09-131-0/+1
| | | | Allows KMS EGL driver to load. We need a better way of doing this.
* eglglx: Convert glx visuals/fbconfigs straight to EGL configsKristian Høgsberg2010-09-091-142/+101
| | | | In other words, skip the __GLcontextModes middle man.
* egl: Remove old egldri driverKristian Høgsberg2010-09-093-1390/+0
| | | | This driver doesn't work with any of the DRI drivers in the source tree.
* egl_dri2: Add support for MESA_image_drmKristian Høgsberg2010-08-251-0/+223
|
* egl_dri2: Set API version for DRM displayKristian Høgsberg2010-07-291-0/+4
|
* egl_dri2: Implement EGL_KHR_surfaceless_* extensionsKristian Høgsberg2010-07-281-25/+55
|
* egl_dri2: Support _EGL_PLATFORM_DRMKristian Høgsberg2010-07-082-40/+223
| | | | This lets the egl_dri2 driver initialize on just a DRM fd.