summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxcmds.c
Commit message (Collapse)AuthorAgeFilesLines
* glx: initialize some local vars to silence warnings with -O3Brian Paul2009-08-211-6/+6
|
* glx: indent -br -i3 -npcs --no-tabsRALOVICH, Kristóf2009-08-131-1770/+1851
| | | | | Some manual intervention applied since XEXT_* and other macro magic fooled indent. Auto generated files were also skipped.
* glx: fix signedness warningRALOVICH, Kristóf2009-08-111-1/+1
|
* glx: fix null pointer dereference segfault (bug 22546)Brian Paul2009-06-301-1/+1
|
* Also release direct rendering resources in glXDestroyGLXPixmap.Michel Dänzer2009-06-191-0/+14
| | | | Fixes leak running compiz with direct rendering.
* glXChooseVisual: Only consider fbconfig if we can get the corresponding visual.Michel Dänzer2009-05-121-16/+17
| | | | | | | This can fail, e.g. when XLIB_SKIP_ARGB_VISUALS=1 is set. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524794 and http://bugs.freedesktop.org/show_bug.cgi?id=21600 .
* glx: added null pointer check in glXGetFBConfigs()Brian Paul2009-04-151-1/+2
| | | | Fixes segfault seen with glxinfo with NVIDIA OpenGL.
* Fix DRI2 accelerated EXT_texture_from_pixmap with GL_RGB format.Eric Anholt2009-03-201-5/+13
| | | | | | | | | | | | | | This requires upgrading the interface so that the argument to glXBindTexImageEXT isn't just dropped on the floor. Note that this only fixes the accelerated path on Intel, as Mesa's texture format support is missing x8r8g8b8 support (right now, GL_RGB textures get uploaded as a8r8gb8, but in this case we're not doing the upload so we can't really work around it that way). Fixes bugs with compositors trying to use shaders that use alpha channels, on windows without a valid alpha channel. Bug #19910 and likely others as well. Reviewed-by: Ian Romanick <[email protected]>
* dri2: support glXWaitX & glXWaitGL by using fake front buffer.Alan Hourihane2009-02-161-6/+18
|
* glx: gcc 2.95 build fix (move declaration before code)Brian Paul2009-01-181-3/+7
| | | | Adapted from patch by Matthieu Herbb <[email protected]>
* glx: remove XCB debug leftoverRALOVICH, Kristóf2008-11-261-4/+0
|
* glx: xcbified glXSwapBuffersRALOVICH, Kristóf2008-11-261-1/+8
|
* glx: xcbified __glXClientInfoRALOVICH, Kristóf2008-11-261-4/+17
|
* glx: no graphics context during initializationRALOVICH, Kristóf2008-11-261-2/+2
|
* glx: xcbified __glXIsDirectRALOVICH, Kristóf2008-11-261-0/+21
|
* glx: use __glXQueryServerStringRALOVICH, Kristóf2008-11-261-5/+3
|
* glFlush before CopySubBuffer, fix coordinates and extension name typo.Kristian Høgsberg2008-11-121-0/+1
|
* Don't mess with emacs tab width.Kristian Høgsberg2008-11-111-1/+0
|
* Update DRI2 implementation according to new specification.Kristian Høgsberg2008-10-141-4/+3
|
* Revert pointless reindents to avoid merge conflicts.Kristian Høgsberg2008-10-141-1642/+1564
| | | | Why are we reindenting code that's work in progress...
* glx: indent -br -i3 -npcs --no-tabs glxcmds.cRALOVICH, Kristóf2008-10-131-1564/+1642
|
* glx: add a line of Emacs helping variablesRALOVICH, Kristóf2008-10-131-0/+1
|
* Update to SGI FreeB 2.0.Adam Jackson2008-09-191-34/+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/+0
| | | | | Was only used to get the PUBLIC/USED macros. Also, replace "GL_FALSE" with "False" in a couple places.
* DRI2: Drop sarea, implement swap buffers in the X server.Kristian Høgsberg2008-08-291-1/+2
|
* glx: free vertex array state when context is destroyedKristof Ralovich2008-08-201-0/+2
|
* glx/x11: Added some #ifdef GLX_DIRECT_RENDERING protectionJeremy Huddleston2008-08-081-0/+16
|
* glx: split out current context codeGeorge Sapountzis2008-04-231-10/+5
| | | | also clean header inclusion after code movement
* DRI interface changes and DRI2 direct rendering support.Kristian Høgsberg2008-03-311-61/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+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-3/+1
| | | | This will be shared between dri and dri2 code.
* Only try to call DRI function if DRI got initialized properly.Kristian Høgsberg2008-03-101-3/+5
|
* Use _X_HIDDEN to hide a bunch of leaked symbols.Kristian Høgsberg2008-03-081-6/+7
|
* Move DRI context functions into dri_glx.c.Kristian Høgsberg2008-03-081-24/+27
| | | | 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-4/+4
|
* Introduce __GLXDRIscreen so we can start moving function pointers in there.Kristian Høgsberg2008-03-081-10/+10
| | | | | Temporarily rename the __DRIscreen member to __driScreen. Eventually, we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
* Move DRI specific parts of CreateContext into dri_glx.c.Kristian Høgsberg2008-03-081-29/+1
|
* Abstract __DRIdisplayPrivateRec away in dri_glx.c.Kristian Høgsberg2008-03-081-1/+1
| | | | | | | | 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.
* Update libGL DRI loader to latest DRI interface changes.Kristian Høgsberg2008-02-291-48/+0
|
* Remove GetMSC DriverAPI function.Kristian Høgsberg2008-02-251-10/+2
| | | | | | | | | | | The DriverAPI is internal to the DRI drivers and GetDrawableMSC obsoletes GetMSC. Also, since the DRI driver interface has not yet been released, just drop the getMSC function from the DRI interface instead using the ABI preserving version mechanism. Finally, using void pointer privates in the DRI interface is not allowed, always pass the actual types around (__DRIdrawable in this case) to enhance type safety and readability of the code.
* remove drawable from hash table when window is deleted (see bug 13091)WuNian2007-11-271-0/+1
|
* Fix compilation for !GLX_DIRECT_RENDERING.Kristian Høgsberg2007-11-061-59/+69
|
* Remove a couple of "deprecated" fields from __GLXcontextRec.Kristian Høgsberg2007-11-061-7/+7
| | | | | The __GLXcontextRec struct is internal to the libGL implementation. No point in "deprecating", just get rid of it.
* Pass the visual id to XF86DRICreateContextWithConfig(), not fbconfig id.Kristian Høgsberg2007-11-061-1/+1
|
* Lookup visual in visual list, not fbconfig list.Kristian Høgsberg2007-11-051-11/+15
| | | | Also, handle visual not found error case by throwing X error.
* Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesaJesse Barnes2007-10-291-0/+1
|\
| * Remember to call XSync() before resetting X error handler.Chris Rankin2007-10-291-0/+1
| |
* | Refactor and fix core vblank supportJesse Barnes2007-10-291-17/+26
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Consolidate support for synchronizing to and retrieving vblank counters. Also fix the core vblank code to return monotonic MSC counters, which are required by some GLX extensions. Adding support for multiple pipes to a low level driver is fairly easy, the Intel 965 driver provides simple example code (see intel_buffers.c:intelWindowMoved()). The new code bumps the media stream counter extension version to 2 and adds a new getDrawableMSC callback. This callback takes a drawablePrivate pointer, which is used to calculate the MSC value seen by clients based on the actual vblank counter(s) returned from the kernel. The new drawable private fields are as follows: - vblSeq - used for tracking vblank counts for buffer swapping - vblFlags - flags (e.g. current pipe), updated by low level driver - msc_base - MSC counter from the last time the current pipe changed - vblank_base - kernel DRM vblank counter from the last time the pipe changed Using the above variables, the core vblank code (in vblank.c) can calculate a monotonic MSC value. The low level DRI drivers are responsible for updating the current pipe (by setting VBLANK_FLAG_SECONDARY for example in vblFlags) along with msc_base and vblank_base whenever the pipe associated with a given drawable changes (again, see intelWindowMoved for an example of this). Drivers should fill in the GetDrawableMSC DriverAPIRec field to point to driDrawableGetMSC32 and add code for pipe switching as outlined above to fully support the new scheme.
* Handle fbconfigs and glx visuals separately.Kristian Høgsberg2007-10-161-3/+4
| | | | | | | | 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.
* Dont add fbconfigs to array that we didn't allocate for.Kristian Høgsberg2007-10-151-2/+4
|