summaryrefslogtreecommitdiff
path: root/src/egl/drivers/dri2/egl_dri2.c
AgeCommit message (Collapse)Author
2011-03-07egl_dri2: Add attribute map for __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLEBenjamin Franzke
Broken since 6538b5824e298eaebede2d9686c7607c44ab446a. Thanks to iskren on #wayland for helping on finding this.
2011-03-01egl: Add EGL_WL_bind_wayland_displayBenjamin Franzke
2011-02-16egl_dri2: add swrastHaitao Feng
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 <haitao.feng@intel.com>
2011-02-10egl_dri2: Always unbind old contextsBenjamin Franzke
This fixes __DRIdrawable refcounting. Binding a context increases their refcount, so we need to decrease it.
2011-02-10egl_dri2: Use double buffering for window surfacesBenjamin Franzke
2011-02-07egl_dri2: Add wayland platformBenjamin Franzke
2011-02-07egl_dri2: Enable pixmap bind_to_texture according to the extensionBenjamin Franzke
2011-02-03egl_dri2: Split out drm platform implementation to a separate fileKristian Høgsberg
2011-02-03egl_dri2: Split out x11 platform codeKristian Høgsberg
2011-01-30egl_dri2: Export glapi symbols for DRI drivers.Chia-I Wu
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.
2011-01-13egl: Improve driver selection.Chia-I Wu
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.
2011-01-13egl: Simplify driver matching.Chia-I Wu
Add initialization options that drv->API.Initialize should support. Replace drv->Probe by TestOnly initialization option and simplify _eglMatchDriver.
2011-01-13egl: Cleanup _EGLDisplay initialization.Chia-I Wu
Reorder/rename and document the fields that should be set by the driver during initialization. Drop the major/minor arguments from drv->API.Initialize.
2011-01-12egl_dri2: Fix eglGetProcAddress.Chia-I Wu
The driver struct is zeroed after dri2_load. Oops.
2011-01-10egl: Make egl_dri2 and egl_glx built-in drivers.Chia-I Wu
These two drivers are small in size. Making them built-in should simplify packaging.
2011-01-10egl_dri2: Look up _glapi_get_proc_address dynamically.Chia-I Wu
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.
2011-01-09dri2: release texture image.Juan Zhao
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.
2010-11-24egl_dri2: Fix one context, multiple surfaces.Chia-I Wu
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.
2010-11-17egl_dri2: Add missing intel chip ids.Robert Hooker
Signed-off-by: Robert Hooker <robert.hooker@canonical.com>
2010-11-10egl_dri2: Fix __DRI_DRI2 version 1 support.Chia-I Wu
Correctly set __DRI_API_OPENGL flag.
2010-11-08egl_dri2: Add radeon chip idsAlex Deucher
2010-10-26egl_dri2: Fix a typo that make glFlush be called at wrong time.Chia-I Wu
We want to call glFlush when there is a current context. That is, old_ctx. This is a regression introduced by d19afc57fe49816f3f3290410e0124d326577be2.
2010-10-23egl: Use reference counting to replace IsLinked or IsBound.Chia-I Wu
Remove all _egl<Res>IsLinked and _egl<Res>IsBound. Update _eglBindContext and drivers to do reference counting.
2010-10-23egl: Minor changes to the _EGLConfig interface.Chia-I Wu
Mainly to rename _eglAddConfig to _eglLinkConfig, along with a few clean ups.
2010-10-22egl: Parse image attributes with _eglParseImageAttribList.Chia-I Wu
Avoid code duplications.
2010-10-22egl: Move attributes in _EGLImage to _EGLImageAttribs.Chia-I Wu
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.
2010-10-22egl_dri2: Drop the use of _egl[SG]etConfigKey.Chia-I Wu
_EGLConfig can be directly dereferenced now.
2010-09-24egl: Fix several 'comparison between signed and unsigned integer' warningsIan Romanick
I hate GCC for requiring the (int) cast on sizeof.
2010-09-24EGL DRI2: Silence 'missing initializer' warningsIan Romanick
2010-09-24EGL DRI2: Silence piles of 'unused variable' warningsIan Romanick
2010-09-22dri: Pass the __DRIscreen and the __DRIscreen private back to image lookupKristian Høgsberg
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.
2010-09-22dri2: Make createImageFromName() take a __DRIscreen instead of __DRIcontextKristian Høgsberg
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 <yu.dai@intel.com>
2010-09-13EGL DRI2: 0xa011 is Pineview not IronlakeJesse Barnes
Point about needing a better way to do this validated.
2010-09-13EGL DRI2: add PCI ID for Ironlake mobileJesse Barnes
Allows KMS EGL driver to load. We need a better way of doing this.
2010-08-25egl_dri2: Add support for MESA_image_drmKristian Høgsberg
2010-07-29egl_dri2: Set API version for DRM displayKristian Høgsberg
2010-07-28egl_dri2: Implement EGL_KHR_surfaceless_* extensionsKristian Høgsberg
2010-07-08egl_dri2: Support _EGL_PLATFORM_DRMKristian Høgsberg
This lets the egl_dri2 driver initialize on just a DRM fd.
2010-06-30egl: Store configs in a dynamic array.Chia-I Wu
2010-06-23egl: Introduce platform displays internally.Chia-I Wu
This commit introduces type-safe platform displays internally. A platform display consists of a generic pointer and an enum that specifies the platform. An EGLDisplay is created from a platform display. Native displays become platform displays whose platform is determined by _eglGetNativePlatform(). Platform windows and pixmaps may also be introduced if needed.
2010-05-28egl_dri2: Split driver loading out into its own functionKristian Høgsberg
2010-05-28egl_dri2: Check for xcb_connect() failure the right wayKristian Høgsberg
It always returns a valid xcb_connection_t, but if connection failed, it's in the error state.
2010-05-20Make TLS EGL dri2 driver search path behavior match TLS GLX dri2 behavior.Eric Anholt
2010-05-14egl: Implement EGL_NOK_texture_from_pixmapKristian Høgsberg
This extension allows a color buffer to be used for both rendering and texturing. EGL allows the use of color buffers of pbuffer drawables for texturing, this extension extends this to allow the use of color buffers of pixmaps too.
2010-05-13egl: Implement EGL_NOK_swap_regionKristian Høgsberg
This extension adds a new function which provides an alternative to eglSwapBuffers. eglSwapBuffersRegionNOK accepts two new parameters in addition to those in eglSwapBuffers. The new parameters consist of a pointer to a list of 4-integer blocks defining rectangles (x, y, width, height) and an integer specifying the number of rectangles in the list.
2010-05-13egl_dri2: Downgrade initialization errors to warningsKristian Høgsberg
Don't want to shutdown everything if egl_dri2 fails to initialize.
2010-05-12egl_dri2: Zero out driver structKristian Høgsberg
Otherwise testing ->Probe for non-NULL and calling it goes boom.
2010-05-02Merge branch 'gles2-2'Kristian Høgsberg
Conflicts: src/mesa/drivers/dri/common/dri_util.h
2010-04-28egl_dri2: Use new DRI API to create a GLES1/2 context when asked toKristian Høgsberg
2010-04-28Merge branch '7.8'Jakob Bornecrantz