summaryrefslogtreecommitdiff
path: root/src/glx
AgeCommit message (Collapse)Author
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
2007-10-29Refactor and fix core vblank supportJesse Barnes
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.
2007-10-29Remember to call XSync() before resetting X error handler.Chris Rankin
2007-10-17Pull workaround for unset GLX_DRAWABLE_TYPE back in.Kristian Høgsberg
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.
2007-10-16Handle fbconfigs and glx visuals separately.Kristian Høgsberg
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.
2007-10-15Roll back premature version bump.Kristian Høgsberg
2007-10-15Dont add fbconfigs to array that we didn't allocate for.Kristian Høgsberg
2007-10-14Drop include "dri_interface.h" from xf86dri.hGeorge Sapountzis
Thanks to dri2, xf86dri no longer uses __DRI types.
2007-10-13Get the width and height from the attrib list in glXCreatePbuffer.Kristian Høgsberg
2007-10-11Convert a left-over private void * to __DRIcontext *.Kristian Høgsberg
2007-10-11Move enabling of DRI extensions into glxextensions.cKristian Høgsberg
2007-10-11Remove now unused getProcAddress from DRIinterfaceMethods.Kristian Høgsberg
2007-10-11Add a DRI_ReadDrawable marker extension to signal read drawable capability.Kristian Høgsberg
2007-10-11Move media stream counter entry points to new extension.Kristian Høgsberg
2007-10-11Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.Kristian Høgsberg
2007-10-11Move GLX_MESA_allocate_memory related functions to new extension mechanism.Kristian Høgsberg
2007-10-10Move swap_interval to new extension mechanism.Kristian Høgsberg
2007-10-10Move the copySubBuffer extension over to the new mechanism.Kristian Høgsberg