summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxext.c
Commit message (Collapse)AuthorAgeFilesLines
* Retire miniglx and move the actual glx code up to src/glxKristian Høgsberg2010-02-091-1060/+0
|
* glx: Fix SwapBuffers regression introduced by 01923fb72d.Francisco Jerez2010-02-081-0/+1
| | | | | | After that commit, some dri2 protocol symbols were being checked from places that weren't including dri2proto.h, effectively disabling some valuable SwapBuffers codepaths.
* glx: permit building with older protocol headersKeith Whitwell2010-02-081-0/+11
| | | | | | | | | | | | | I'd like to be able to build mesa on current distro releases without having to upgrade from the standard dri2proto and glproto headers. With this change I'm able to build on ancient releases such as Ubuntu 9-10... In general, it would be nice to be able to build-test mesa to check for unintended breakages without having to follow the external dependencies of every group working on the codebase. Seems to introduce no changes to the build of libglapi.a when tested against new versions of the headers.
* glx: Remove unnecessary headers.Vinson Lee2010-02-011-1/+0
|
* mesa: misc GLX_INTEL_swap_event fixesRobert Bragg2010-01-251-4/+3
| | | | | | | | Fixup a few issues found through testing: - update GLX names to match glproto - register DRI2WireToEvent so it actually gets called Signed-off-by: Robert Bragg <[email protected]>
* DRI2/GLX: add INTEL_swap_event supportJesse Barnes2010-01-081-2/+89
| | | | | | | Add event support for the GLX swap buffers event, along with DRI2 protocol support for generating GLX swap buffers events in the direct rendered case. Signed-off-by: Jesse Barnes <[email protected]>
* glx: Move declaration outside for loop.Vinson Lee2009-12-231-2/+3
|
* glx: indent -br -i3 -npcs --no-tabsRALOVICH, Kristóf2009-08-131-30/+31
| | | | | Some manual intervention applied since XEXT_* and other macro magic fooled indent. Auto generated files were also skipped.
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-301-0/+6
|\
| * glx: properly release DRI configsRALOVICH, Kristóf2009-07-281-0/+6
| | | | | | | | Release per screen DRI driver configs during screen destruction.
* | glx: remove XTHREADS supportRALOVICH, Kristóf2009-07-271-11/+0
|/
* mesa: Resurrect SPARC asm code.David S. Miller2009-02-261-86/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This rewrites the sparc GLAPI code so that it's PIC friendly and works with all of the TLS/PTHREADS/64-bit/32-bit combinations properly. As a result we can turn SPARC asm back on. Currently it's only enabled on Linux, as that's the only place where I can test this stuff out. For the moment the cliptest SPARC asm routines are disabled as they are non-working. The problem is that they use register %g7 as a temporary which is where the threading libraries store the thread pointer on SPARC. I will fix that code up in a future change as it's a pretty important routine to optimize. Like x86 we do the runtime patch as a pthread once-invoked initializer in init_glapi_relocs(). Unlike x86, however, our GLAPI stubs on SPARC are just two instruction sequences that branch to a trampoline and put the GLAPI offset into a register. The trampoline is what we run-time patch. The stubs thus all look like: glFoo: ba __glapi_sparc_foo_stub sethi GLAPI_OFFSET(glFOO) * PTR_SIZE, %g3 This actually makes generate_entrypoint() a lot simpler on SPARC. For this case in generate_entrypoint() we generate stubs using a 'call' instead of the 'ba' above to make sure it can reach. In order to get a proper tail call going here, in the unpatched case, we do several tricks. To get the current PC, for example, we save the return address register into a temporary, do a call, save the return address register written by the call to another temporary, then restore the original return address register value. This is to avoid having to allocate a stack frame. This is necessary for PIC address formation. This new GLAPI scheme lets us get rid of the ugly SPARC GLAPI hacks in __glXInitialize() and one_time_init(). Signed-off-by: David S. Miller <[email protected]>
* 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
|