summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxext.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "glx: xcbified visual and FBConfig choosing"RALOVICH, Kristóf2008-11-271-103/+6
| | | | This reverts commit 62688f11355cfa865d420755aa159875b425cc9b.
* Revert "glx: revert using nonexsisten XCB version of glXGetFBConfigsSGIX"RALOVICH, Kristóf2008-11-271-0/+58
| | | | This reverts commit 53698765019e50172be25a4ff48c83d54f0e7981.
* glx: revert using nonexsisten XCB version of glXGetFBConfigsSGIXRALOVICH, Kristóf2008-11-261-58/+0
| | | | | | | | This uses a GLX VendorPrivate request. VendorPrivates are real GLX API calls but use the same protocol request. XCB does not currently support specific VendorPrivetes directly. See eg.: http://lists.freedesktop.org/archives/xcb/2008-November/004036.html for more information.
* glx: xcbified visual and FBConfig choosingRALOVICH, Kristóf2008-11-261-6/+103
|
* glx: no graphics context during initializationRALOVICH, Kristóf2008-11-261-2/+2
|
* glx: use __glXQueryServerStringRALOVICH, Kristóf2008-11-261-6/+2
|
* glx: implement QueryVersion using XCBRALOVICH, Kristóf2008-11-261-1/+22
|
* Don't mess with emacs tab width.Kristian Høgsberg2008-11-111-1/+0
|
* glx: indent -br -i3 -npcs --no-tabs glxext.cRALOVICH, Kristóf2008-10-131-689/+704
|
* glx: add a line of Emacs helping variablesRALOVICH, Kristóf2008-10-131-0/+1
|
* glx: make INIT_MESA_SPARC more robustRALOVICH, Kristóf2008-10-131-8/+8
| | | | Embed the macro body into do { ... } while(0) .
* Update to SGI FreeB 2.0.Adam Jackson2008-09-191-35/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Under the terms of version 1.1, "once Covered Code has been published under a particular version of the License, Recipient may, for the duration of the License, continue to use it under the terms of that version, or choose to use such Covered Code under the terms of any subsequent version published by SGI." FreeB 2.0 license refers to "dates of first publication". They are here taken to be 1991-2000, as noted in the original license text: ** Original Code. The Original Code is: OpenGL Sample Implementation, ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. ** Copyright in any portions created by third parties is as indicated ** elsewhere herein. All Rights Reserved. Official FreeB 2.0 text: http://oss.sgi.com/projects/FreeB/SGIFreeSWLicB.2.0.pdf As always, this code has not been tested for conformance with the OpenGL specification. OpenGL conformance testing is available from http://khronos.org/ and is required for use of the OpenGL logo in product advertising and promotion.
* glx: remove #include "glheader.h" linesBrian Paul2008-09-181-1/+1
| | | | | Was only used to get the PUBLIC/USED macros. Also, replace "GL_FALSE" with "False" in a couple places.
* glx: free driScreen in FreeScreenConfigs()Kristof Ralovich2008-08-201-0/+3
|
* fix mem leak (free psc->visuals)Kristof Ralovich2008-08-201-3/+6
|
* glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protectionJeremy Huddleston2008-08-081-1/+1
|
* glx: add LIBGL_ALWAYS_SOFTWAREGeorge Sapountzis2008-07-071-2/+9
| | | | | | this disables accelerated DRI and fallbacks to client-side software rendering. compile-tested only.
* glx: load swrast_dri.soGeorge Sapountzis2008-06-131-1/+13
| | | | | | | | | | | | | | caveats: - does not work with old (i.e. libGLcore) xserver: - made unbindContext a noop - extensions: GLX_SGI_make_current_read GLX_EXT_texture_from_pixmap GLX_MESA_copy_sub_buffer
* glx: split out current context codeGeorge Sapountzis2008-04-231-495/+16
| | | | also clean header inclusion after code movement
* DRI interface changes and DRI2 direct rendering support.Kristian Høgsberg2008-03-311-24/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add DRI2 direct rendering support to libGL and add DRI2 client side protocol code. Extend the GLX 1.3 create drawable functions in glx_pbuffer.c to call into the DRI driver when possible. Introduce __DRIconfig, opaque struct that represents a DRI driver configuration. Get's rid of the open coded __GLcontextModes in the DRI driver interface and the context modes create and destroy functions that the loader was requires to provide. glcore.h is no longer part of the DRI driver interface. The DRI config is GL binding agnostic, that is, not specific to GLX, EGL or other bindings. The core API is now also an extension, and the driver exports a list of extensions as the symbol __driDriverExtensions, which the loader must dlsym() for. The list of extension will always include the DRI core extension, which allows creating and manipulating DRI screens, drawables and contexts. The DRI legacy extension, when available, provides alternative entry points for creating the DRI objects that work with the XF86DRI infrastructure. Change DRI2 client code to not use drm drawables or contexts. We never used drm_drawable_t's and the only use for drm_context_t was as a unique identifier when taking the lock. We now just allocate a unique lock ID out of the DRILock sarea block. Once we get rid of the lock entirely, we can drop this hack. Change the interface between dri_util.c and the drivers, so that the drivers now export the DriverAPI struct as driDriverAPI instead of the InitScreen entry point. This lets us avoid dlsym()'ing for the DRI2 init screen function to see if DRI2 is supported by the driver.
* glx: Add isDirect back to __GLXcontextRec. It is neededXiang, Haihao2008-03-181-2/+2
| | | | | | to check whether oldGC is used for direct rendering in function MakeContextCurrent. However it is possible oldGC->driContext is already freed. fix bug #14926.
* libGL: Pull the drawable hash back out in the generic code.Kristian Høgsberg2008-03-121-2/+17
| | | | This will be shared between dri and dri2 code.
* Add another missing check for uninitialized DRI.Kristian Høgsberg2008-03-121-1/+2
| | | | Spotted by Chris Taylor.
* Only try to call DRI function if DRI got initialized properly.Kristian Høgsberg2008-03-101-1/+2
|
* remove extra #include of assert.h (bug 14932)Brian2008-03-101-1/+0
|
* Use _X_HIDDEN to hide a bunch of leaked symbols.Kristian Høgsberg2008-03-081-22/+22
|
* Move DRI context functions into dri_glx.c.Kristian Høgsberg2008-03-081-45/+20
| | | | Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
* Move DRI drawable creation into dri_glx.c.Kristian Høgsberg2008-03-081-39/+6
|
* Introduce __GLXDRIscreen so we can start moving function pointers in there.Kristian Høgsberg2008-03-081-8/+8
| | | | | Temporarily rename the __DRIscreen member to __driScreen. Eventually, we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
* Convert driCreateScreen and driDestroyScreen to function pointers.Kristian Høgsberg2008-03-081-2/+2
| | | | | We avoid leaking the symbols and will be able to replace them with DRI2 implementation later on.
* Abstract __DRIdisplayPrivateRec away in dri_glx.c.Kristian Høgsberg2008-03-081-8/+5
| | | | | | | | This patch moves __DRIdisplayPrivateRec definition into dri_glx.c and let's dri_glx.c allocate the __DRIdisplay struct pointer to from __GLXdisplayPrivate. A small step towards moving more of the dri functionality into dri_glx.c.
* Make __glXCloseDisplay static instead of prototyping it to avoid warning.Kristian Høgsberg2008-03-081-9/+1
|
* Simplify dri loading code by eliminating dlopen "cache".Kristian Høgsberg2008-03-081-10/+1
| | | | | | | No need to jump through hoops to track __DRIdrivers and avoid dlopening the same .so more than twice, dlopen() does this internally. Besides, we were already bypassing this and dlopening drivers for each screen, whether or not they were already dlopened.
* libGL: Consolidate DRI initialization in dri_glx.cKristian Høgsberg2008-03-081-406/+2
| | | | Move a lot of code over from glx_ext.c.
* Update libGL DRI loader to latest DRI interface changes.Kristian Høgsberg2008-02-291-7/+22
|
* Fix compilation for !GLX_DIRECT_RENDERING.Kristian Høgsberg2007-11-061-1/+1
|
* Don't return 0 in a void function.Kristian Høgsberg2007-11-061-2/+2
|
* Filter both visuals and fbconfigs against driver supported configs.Kristian Høgsberg2007-11-051-6/+3
|
* Fix some build warnings, mostly with XCB.Michel Dänzer2007-10-301-1/+2
|
* Pull workaround for unset GLX_DRAWABLE_TYPE back in.Kristian Høgsberg2007-10-171-0/+2
| | | | | | | | | The old version just set GLX_DRAWABLE_TYPE to GLX_WINDOW_BIT for configs received through glXGetVisualConfigs and to GLX_WINDOW_BIT | GLX_PIXMAP_BIT for configs received as FBConfigs. The X server needs to send this info, but keep the workaround for now. Fixes #12835.
* Handle fbconfigs and glx visuals separately.Kristian Høgsberg2007-10-161-140/+127
| | | | | | | | The old implementation fetches fbconfigs or glx visuals once and assumes the list describes both fbconfigs and glx visuals. This patch splits it up and fetches visuals and fbconfigs in two steps and keep the two lists separate. A server could have no glx visuals or no glx fbconfigs and the old code wouldn't know the difference.
* Move enabling of DRI extensions into glxextensions.cKristian Høgsberg2007-10-111-68/+1
|
* Remove now unused getProcAddress from DRIinterfaceMethods.Kristian Høgsberg2007-10-111-15/+0
|
* Add a DRI_ReadDrawable marker extension to signal read drawable capability.Kristian Høgsberg2007-10-111-0/+7
|
* Move media stream counter entry points to new extension.Kristian Høgsberg2007-10-111-1/+14
|
* Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.Kristian Høgsberg2007-10-111-3/+8
|
* Move GLX_MESA_allocate_memory related functions to new extension mechanism.Kristian Høgsberg2007-10-111-0/+11
|
* Move swap_interval to new extension mechanism.Kristian Høgsberg2007-10-101-0/+12
|
* Move the copySubBuffer extension over to the new mechanism.Kristian Høgsberg2007-10-101-1/+9
|
* Implement new screen extension API.Kristian Høgsberg2007-10-101-0/+14
| | | | | | | | | | | | This new API lets the loader examine DRI level extensions provided by the driver in a forward compatible manner. Much of the churn in the DRI interface is adding support for new extensions or removing old, unused extensions. This new extension mechanism lets the loader query the extensions provided by the driver and implement the extensions it knows about. Deprecating extensions is done by not exporting that extension in the list, which doesn't require keeping old function pointers around to preserve ABI.