summaryrefslogtreecommitdiffstats
path: root/src/glx
Commit message (Collapse)AuthorAgeFilesLines
* Default DRI driver directory to match X.Org xserverDan Nicholson2008-05-091-1/+1
| | | | | | | Since the only valid consumer of the DRI drivers is the X.Org xserver, this changes the default DRI driver directory to match xorg-server: ${libdir}/dri. The old default of /usr/X11R6/modules/dri was wrong for nearly all current systems.
* Never fail `make clean'Dan Nicholson2008-05-071-1/+1
| | | | | | Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean.
* Always cleanup the makedepend backup filesDan Nicholson2008-05-062-2/+2
| | | | | | Consistently cleanup the depend.bak files created by makedepend. Also, realclean has been changed to use a single find command, which speeds it up considerably.
* Error consistently when running recursive makeDan Nicholson2008-05-061-2/+2
| | | | | When changing directories and running a sub-make, ensure that both the cd and make commands propagate errors to the parent make.
* include <X11/Xlib.h>Alan Hourihane2008-04-232-0/+2
|
* glx: nitpick renamesGeorge Sapountzis2008-04-234-2/+2
|
* glx: split out current context codeGeorge Sapountzis2008-04-237-521/+538
| | | | also clean header inclusion after code movement
* Get the default GLXPixmap texture target from the server when appropriate.Michel Dänzer2008-04-101-27/+37
| | | | | | | Fixes compiz with direct rendering when both GLX_TEXTURE_2D_EXT and GLX_TEXTURE_RECTANGLE_EXT are supported for a GLXPixmap and the application didn't specify the texture target as a GLX drawable attribute when creating the GLX drawable.
* Handle fbconfig comparison correctly for attributes the X server didn't send.Jie Luo2008-04-082-5/+6
|
* Only convert configs if screen creation was successful.Kristian Høgsberg2008-04-081-8/+10
| | | | Thanks to Adam Jackson for pointing it out.
* Pick up dri2proto from the standard proto header include path.Kristian Høgsberg2008-04-021-1/+1
|
* Initialize GLX_EXT_texture_from_pixmap attributes correctly.Kristian Høgsberg2008-04-021-4/+1
|
* DRI interface changes and DRI2 direct rendering support.Kristian Høgsberg2008-03-3111-256/+1305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-183-2/+9
| | | | | | to check whether oldGC is used for direct rendering in function MakeContextCurrent. However it is possible oldGC->driContext is already freed. fix bug #14926.
* Test createNewScreen for NULL, not createNewScreenName in driCreateScreen().Kristian Høgsberg2008-03-151-1/+1
|
* glx: fix rotation regression. bug #14963Xiang, Haihao2008-03-141-2/+4
|
* libGL: Pull the drawable hash back out in the generic code.Kristian Høgsberg2008-03-124-18/+29
| | | | 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.
* Move make install logic for libGL back into src/mesa/Makefile.Kristian Høgsberg2008-03-102-26/+2
| | | | | | | | | This makes make install work again for non-glx libGL implementations. The make install logic is split into three sub-targets: install-libgl, install-osmesa, install-drivers. The install target in src/glx/x11 is then implemented using the src/mesa make install-libgl rule. Thanks to Dan Nicholson for pointing out the breakage.
* Only try to call DRI function if DRI got initialized properly.Kristian Høgsberg2008-03-102-4/+7
|
* remove extra #include of assert.h (bug 14932)Brian2008-03-101-1/+0
|
* dri: fix function call to add new parameter.Dave Airlie2008-03-101-0/+1
| | | | This may not be correct but it should get the build going.
* Properly revert the libGL loader path breakage.Kristian Høgsberg2008-03-091-0/+1
|
* libGL: Fall back to DEFAULT_DRIVER_DIR properly.Kristian Høgsberg2008-03-091-1/+2
| | | | | | | | After commit 6fd82f6fbd208dc7b1839ea408a5fb28589ee622, we would overwrite the libPath default value with NULL if libGL was running non-setuid and none of the env vars were set. Thanks to Magnus Kessler <[email protected]> for spotting it.
* Use _X_HIDDEN to hide a bunch of leaked symbols.Kristian Høgsberg2008-03-085-37/+43
|
* Move DRI context functions into dri_glx.c.Kristian Høgsberg2008-03-086-128/+152
| | | | 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-084-56/+68
|
* Introduce __GLXDRIscreen so we can start moving function pointers in there.Kristian Høgsberg2008-03-085-48/+58
| | | | | 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-083-29/+43
|
* Convert driCreateScreen and driDestroyScreen to function pointers.Kristian Høgsberg2008-03-083-19/+23
| | | | | 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-085-101/+37
| | | | | | | | 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
|
* Move libGL install target to the libGL Makefile.Kristian Høgsberg2008-03-082-2/+26
|
* Simplify LIBGL_DRIVERS_PATH walking.Kristian Høgsberg2008-03-081-76/+19
|
* Simplify dri loading code by eliminating dlopen "cache".Kristian Høgsberg2008-03-084-185/+46
| | | | | | | 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-083-406/+411
| | | | Move a lot of code over from glx_ext.c.
* Update libGL DRI loader to latest DRI interface changes.Kristian Høgsberg2008-02-293-58/+22
|
* autoconf: Add gcc search patch to MKDEP_OPTIONS to eliminate warnings.Kristian Høgsberg2008-02-251-1/+1
| | | | | Also, use -include to avoid error message when make initially fails to include the non-existent depend file.
* 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.
* Regenerated (see bug 11893)Brian2008-02-191-0/+4
|
* Regenerated (raise GL_INVALID_VALUE if counter param is negative)Brian2008-02-191-0/+180
|
* glapi: Generate xserver glapi sources in the mesa treeDan Nicholson2008-02-178-0/+16844
| | | | | | | | | Instead of generating the glapi sources for the xserver and commiting them to the xserver tree, we can keep them in the mesa tree and change the xserver build to use the files from the mesa tree. This makes the xserver glx build more robust as it reduces the chances for mismatches of the glX API used in the xserver vs. in mesa.
* Assorted patches for miniglx/linux-solo (Gavin Li <[email protected]>)Brian2008-01-231-0/+4
|
* fix pc vs. gc->ps usage (bug 14197)Brian2008-01-221-4/+4
|
* Minor followup fixes for the previous commit.Michel Dänzer2007-12-061-1/+4
|
* Always call dlopen in DriverOpen.George Nassas2007-12-062-2/+7
| | | | | | This increases the reference count for the driver binary, preventing it from getting unloaded prematurely in driDestroyDisplay. See https://bugs.freedesktop.org/show_bug.cgi?id=13541 .
* remove drawable from hash table when window is deleted (see bug 13091)WuNian2007-11-271-0/+1
|
* libGL: Make sure a valid value is returned for GLX_BIND_TO_MIPMAP_TEXTURE_EXT.Michel Dänzer2007-11-251-1/+2
| | | | | | | | | If the server didn't send a value, assume it's not supported. A more generic solution might be better for this kind of problem, but an attempt for this failed (see https://bugs.freedesktop.org/show_bug.cgi?id=9264) and this allows compiz to work with drivers that support GL_EXT_framebuffer_object.
* recreate from changed gl_API.xmlRoland Scheidegger2007-11-093-82/+0
|
* Fix compilation for !GLX_DIRECT_RENDERING.Kristian Høgsberg2007-11-064-68/+83
|