summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* egl: Store configs in a dynamic array.Chia-I Wu2010-06-302-2/+2
|
* egl: Introduce platform displays internally.Chia-I Wu2010-06-232-9/+16
| | | | | | | | | | | 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.
* egl_dri2: Split driver loading out into its own functionKristian Høgsberg2010-05-281-32/+48
|
* egl_dri2: Check for xcb_connect() failure the right wayKristian Høgsberg2010-05-281-6/+4
| | | | | It always returns a valid xcb_connection_t, but if connection failed, it's in the error state.
* Make TLS EGL dri2 driver search path behavior match TLS GLX dri2 behavior.Eric Anholt2010-05-201-9/+12
|
* egl: Link drivers back to libEGL.Chia-I Wu2010-05-191-1/+1
| | | | | Drivers need symbols from libEGL. Without back-linking, the build fails on Cygwin.
* egl: Implement EGL_NOK_texture_from_pixmapKristian Høgsberg2010-05-141-18/+6
| | | | | | | 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.
* egl: remove duplicate ARRAY_SIZE() macro declarationBrian Paul2010-05-141-1/+1
|
* egl: Implement EGL_NOK_swap_regionKristian Høgsberg2010-05-131-2/+45
| | | | | | | | | 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.
* egl_dri2: Downgrade initialization errors to warningsKristian Høgsberg2010-05-131-4/+4
| | | | Don't want to shutdown everything if egl_dri2 fails to initialize.
* egl_dri2: Zero out driver structKristian Høgsberg2010-05-121-0/+1
| | | | Otherwise testing ->Probe for non-NULL and calling it goes boom.
* egl: Build drivers in $(TOP)/$(LIB_DIR)/egl.Chia-I Wu2010-05-081-2/+3
| | | | | There are enough EGL modules that they deserve a subdirectory, to avoid polluting $(TOP)/$(LIB_DIR).
* glapi: Move to src/mapi/.Chia-I Wu2010-05-072-2/+2
| | | | Move glapi to src/mapi/{glapi,es1api,es2api}.
* Merge branch 'gles2-2'Kristian Høgsberg2010-05-021-10/+59
|\ | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.h
| * egl_dri2: Use new DRI API to create a GLES1/2 context when asked toKristian Høgsberg2010-04-281-10/+59
| |
* | Merge branch '7.8'Jakob Bornecrantz2010-04-281-1/+2
|\ \ | |/ |/|
| * egl: dri2 driver error outputMicah Fedke2010-04-281-1/+2
| | | | | | | | | | | | | | This patch amends the error output string for the case where the dri2 egl driver could not open the dri dev node. Signed-off-by: Brian Paul <[email protected]>
* | Merge branch '7.8'Dan Nicholson2010-04-191-2/+2
|\| | | | | | | | | | | | | | | Conflicts: progs/egl/Makefile progs/egl/Makefile is gone on master with the egl demos split into subdirectories. Will require an additional commit.
| * egl: Pass flags to locate Xlib headers and librariesDan Nicholson2010-04-191-2/+2
| | | | | | | | | | | | | | | | eglplatform.h pulls in Xlib.h on X11 platforms. Likewise, the egl glx driver and egl programs needs to link to libX11. Make sure we use the locations the user told us about. Signed-off-by: Dan Nicholson <[email protected]>
* | egl_dri2: Enable KHR_gl_texture_2D_imageKristian Høgsberg2010-04-141-0/+1
| | | | | | | | Forgot to set the enabled bit when I implemented the extension.
* | egl_dri2: Flush before context switch and swap buffers.Chia-I Wu2010-04-061-0/+18
|/ | | | | DRI does not define any callback to flush the current context. GLX loader simply calls glFlush. Follow the GLX loader here.
* egl_dri2: Factor out DRI2 protocol bits from initialize.Kristian Høgsberg2010-03-031-86/+155
|
* egl_dri2: Implement EGL_KHR_gl_renderbuffer_imageKristian Høgsberg2010-02-261-63/+103
|
* egl_dri2: Implement EGL_KHR_image and EGL_KHR_image_pixmapKristian Høgsberg2010-02-241-4/+149
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-1/+1
|