summaryrefslogtreecommitdiff
path: root/src/glx
AgeCommit message (Collapse)Author
2008-04-10Get the default GLXPixmap texture target from the server when appropriate.Michel Dänzer
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.
2008-04-08Handle fbconfig comparison correctly for attributes the X server didn't send.Jie Luo
2008-04-08Only convert configs if screen creation was successful.Kristian Høgsberg
Thanks to Adam Jackson for pointing it out.
2008-04-02Pick up dri2proto from the standard proto header include path.Kristian Høgsberg
2008-04-02Initialize GLX_EXT_texture_from_pixmap attributes correctly.Kristian Høgsberg
2008-03-31DRI interface changes and DRI2 direct rendering support.Kristian Høgsberg
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.
2008-03-18glx: Add isDirect back to __GLXcontextRec. It is neededXiang, Haihao
to check whether oldGC is used for direct rendering in function MakeContextCurrent. However it is possible oldGC->driContext is already freed. fix bug #14926.
2008-03-15Test createNewScreen for NULL, not createNewScreenName in driCreateScreen().Kristian Høgsberg
2008-03-14glx: fix rotation regression. bug #14963Xiang, Haihao
2008-03-12libGL: Pull the drawable hash back out in the generic code.Kristian Høgsberg
This will be shared between dri and dri2 code.
2008-03-12Add another missing check for uninitialized DRI.Kristian Høgsberg
Spotted by Chris Taylor.
2008-03-10Move make install logic for libGL back into src/mesa/Makefile.Kristian Høgsberg
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.
2008-03-10Only try to call DRI function if DRI got initialized properly.Kristian Høgsberg
2008-03-10remove extra #include of assert.h (bug 14932)Brian
2008-03-10dri: fix function call to add new parameter.Dave Airlie
This may not be correct but it should get the build going.
2008-03-09Properly revert the libGL loader path breakage.Kristian Høgsberg
2008-03-09libGL: Fall back to DEFAULT_DRIVER_DIR properly.Kristian Høgsberg
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 <Magnus.Kessler@gmx.net> for spotting it.
2008-03-08Use _X_HIDDEN to hide a bunch of leaked symbols.Kristian Høgsberg
2008-03-08Move DRI context functions into dri_glx.c.Kristian Høgsberg
Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
2008-03-08Move DRI drawable creation into dri_glx.c.Kristian Høgsberg
2008-03-08Introduce __GLXDRIscreen so we can start moving function pointers in there.Kristian Høgsberg
Temporarily rename the __DRIscreen member to __driScreen. Eventually, we'll move that into __GLXDRIscreen and only access it in dri_glx.c.
2008-03-08Move DRI specific parts of CreateContext into dri_glx.c.Kristian Høgsberg
2008-03-08Convert driCreateScreen and driDestroyScreen to function pointers.Kristian Høgsberg
We avoid leaking the symbols and will be able to replace them with DRI2 implementation later on.
2008-03-08Abstract __DRIdisplayPrivateRec away in dri_glx.c.Kristian Høgsberg
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.
2008-03-08Make __glXCloseDisplay static instead of prototyping it to avoid warning.Kristian Høgsberg
2008-03-08Move libGL install target to the libGL Makefile.Kristian Høgsberg
2008-03-08Simplify LIBGL_DRIVERS_PATH walking.Kristian Høgsberg
2008-03-08Simplify dri loading code by eliminating dlopen "cache".Kristian Høgsberg
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.
2008-03-08libGL: Consolidate DRI initialization in dri_glx.cKristian Høgsberg
Move a lot of code over from glx_ext.c.
2008-02-29Update libGL DRI loader to latest DRI interface changes.Kristian Høgsberg
2008-02-25autoconf: Add gcc search patch to MKDEP_OPTIONS to eliminate warnings.Kristian Høgsberg
Also, use -include to avoid error message when make initially fails to include the non-existent depend file.
2008-02-25Remove GetMSC DriverAPI function.Kristian Høgsberg
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.
2008-02-19Regenerated (see bug 11893)Brian
2008-02-19Regenerated (raise GL_INVALID_VALUE if counter param is negative)Brian
2008-02-17glapi: Generate xserver glapi sources in the mesa treeDan Nicholson
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.
2008-01-23Assorted patches for miniglx/linux-solo (Gavin Li <codeview@gmail.com>)Brian
2008-01-22fix pc vs. gc->ps usage (bug 14197)Brian
2007-12-06Minor followup fixes for the previous commit.Michel Dänzer
2007-12-06Always call dlopen in DriverOpen.George Nassas
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 .
2007-11-27remove drawable from hash table when window is deleted (see bug 13091)WuNian
2007-11-25libGL: Make sure a valid value is returned for GLX_BIND_TO_MIPMAP_TEXTURE_EXT.Michel Dänzer
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.
2007-11-09recreate from changed gl_API.xmlRoland Scheidegger
2007-11-06Fix compilation for !GLX_DIRECT_RENDERING.Kristian Høgsberg
2007-11-06Remove a couple of "deprecated" fields from __GLXcontextRec.Kristian Høgsberg
The __GLXcontextRec struct is internal to the libGL implementation. No point in "deprecating", just get rid of it.
2007-11-06Don't return 0 in a void function.Kristian Høgsberg
2007-11-06Pass the visual id to XF86DRICreateContextWithConfig(), not fbconfig id.Kristian Høgsberg
2007-11-05Lookup visual in visual list, not fbconfig list.Kristian Høgsberg
Also, handle visual not found error case by throwing X error.
2007-11-05Filter both visuals and fbconfigs against driver supported configs.Kristian Høgsberg
2007-10-30Fix some build warnings, mostly with XCB.Michel Dänzer
2007-10-29Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesaJesse Barnes