summaryrefslogtreecommitdiffstats
path: root/include/GL
Commit message (Collapse)AuthorAgeFilesLines
* Use __DRIextension mechanism providing loader functionality to the driver.Kristian Høgsberg2008-02-291-22/+60
| | | | | | | Instead of passing in a fixed struct, the loader now passes in a list of __DRIextension structs, to advertise the functionality it can provide to the driver. Each extension is individually versioned and can be extended or phased out as the interface develops.
* Reduce the versioning madness required to create a DRI2 screen.Kristian Høgsberg2008-02-291-5/+2
| | | | | | | | | | | | | | | | | | Right now the DRI2 screen constructor takes 3 different versions: DRI, DDX and DRM. This is mostly useless, though: DRI: The DRI driver doesn't actually care about the DRI protocol, it only talks to the loader, which in turn speaks DRI protocol. Thus, the DRI protocol version is of not interest to the DRI driver, but it needs to know what functionality the loader provides. At this point that's reflected in the __DRIinterfaceMethods struct and the internal_version integer. DDX: The DDX version number is essentially used to track extensions to the SAREA. With DRI2 the SAREA consists of a number of versioned, self-describing blocks, so the DDX version is no longer interesting. DRM: We have the fd, lets just ask the kernel ourselves.
* Convert crlf->lf line endings.José Fonseca2008-02-281-79/+79
| | | | | | Windows/DOS users should enable core.autocrlf from now on: git config --global core.autocrlf true
* Remove GetMSC DriverAPI function.Kristian Høgsberg2008-02-251-13/+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.
* Add TTM buffer object based texture from pixmap implementation.Kristian Høgsberg2008-02-141-0/+20
| | | | Currently only implemented for intel hw.
* Add new DRI2 infrastructure.Kristian Høgsberg2008-02-142-6/+163
|
* Fix GLX build of xserver master branch.Michel Dänzer2007-11-051-0/+5
| | | | The internal CreatePixmap API has been extended.
* Refactor and fix core vblank supportJesse Barnes2007-10-291-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add GL_CORE_WINDOWS define to glcore.hGeorge Sapountzis2007-10-141-0/+1
| | | | | | | | | | | | This is for consistency with glproto. The GL_CORE defines should probably be dropped. ---- Author: Alexander Gottwald <[email protected]> Date: Mon Jun 21 13:35:05 2004 +0000 Bug 782: Merge native OpenGL for Windows from CYGWIN branch
* Add a version field to __DRIextension.Kristian Høgsberg2007-10-111-0/+23
|
* Move new texOffset extension to the new extension mechanism.Kristian Høgsberg2007-10-111-12/+17
|
* Convert a left-over private void * to __DRIcontext *.Kristian Høgsberg2007-10-111-1/+1
|
* Remove now unused getProcAddress from DRIinterfaceMethods.Kristian Høgsberg2007-10-111-38/+0
|
* Add a DRI_ReadDrawable marker extension to signal read drawable capability.Kristian Høgsberg2007-10-111-0/+5
|
* Move media stream counter entry points to new extension.Kristian Høgsberg2007-10-111-49/+27
|
* Move GLX_MESA_swap_frame_usage DRI entry points to the new mechanism.Kristian Høgsberg2007-10-111-16/+25
|
* Move GLX_MESA_allocate_memory related functions to new extension mechanism.Kristian Høgsberg2007-10-111-16/+18
|
* Move swap_interval to new extension mechanism.Kristian Høgsberg2007-10-101-8/+11
|
* Move the copySubBuffer extension over to the new mechanism.Kristian Høgsberg2007-10-101-8/+10
|
* Implement new screen extension API.Kristian Høgsberg2007-10-101-0/+20
| | | | | | | | | | | | This new API lets the loader examine DRI level extensions provided by the driver in a forward compatible manner. Much of the churn in the DRI interface is adding support for new extensions or removing old, unused extensions. This new extension mechanism lets the loader query the extensions provided by the driver and implement the extensions it knows about. Deprecating extensions is done by not exporting that extension in the list, which doesn't require keeping old function pointers around to preserve ABI.
* Stop passing in unused fbconfigs to createNewScreen.Kristian Høgsberg2007-10-101-1/+0
|
* Convert all DRI entrypoints to take pointers to __DRI* types.Kristian Høgsberg2007-10-101-20/+20
| | | | | | | | | | The entrypoints take a mix of __DRIscreen * and void * (screen private) arguments (similarly for contexts and drawables). This patch does away with passing the private void pointer and always only passes the fully typed __DRIscreen pointer and always as the first argument. This makes the interface more consistent and increases type safety, and catches a bug where we would pass a screen private to DRIdrawable::getSBC.
* Remove screenConfigs from __DRIscreen.Kristian Høgsberg2007-10-101-11/+2
| | | | | | | | | | | | The screenConfigs field of __DRIscreen points back to the containing __GLXscreenConfigs struct. This is a serious abstraction violation; it assumes that the loader is libGL and that there *is* a __GLXscreenConfigs type in the loader. Using the containerOf macro, we can get from the __DRIscreen pointer to the containing __GLXscreenConfigs struct, at a place in the stack where the above is a valid assumption. Besides, the __DRI* structs shouldn't hold state other than the private pointer.
* Drop mostly unused __DRIid typedef.Kristian Høgsberg2007-10-101-1/+0
|
* Drop createContext and destroyContext from DRIinterfaceMethods.Kristian Høgsberg2007-10-101-12/+2
| | | | | | | | | | As for createDrawable and destroyDrawable, these functions immediately upon entry to driCreateNewContext and immediately before exit from driDestroyContext. Instead of passing function pointers back and forth just obtain the drm_context_t prior to calling DRIscreen::createNewContext and pass it as a parameter. This change also lets us keep the DRI context XID in the libGL loader only.
* Drop createDrawable and destroyDrawable fron DRIinterfaceMethods.Kristian Høgsberg2007-10-101-13/+3
| | | | | | | | | | | | All the DRI driver did was call the createDrawable callback immediately upon entry to DRIscreen::createNewDrawable to get the drm_drawable_t. We can just call that before calling into the DRI driver and pass the returned drm_drawable_t as an argument to the DRI entry point. Likewise for destroyDrawable. Also, DRIdrawablePrivate::draw isn't used anywhere, and since the driver no longer needs the XID of the drawable we can now drop that.
* Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.Kristian Høgsberg2007-10-101-42/+33
| | | | | | | | | | | | | Many DRI entry points took a __DRInativeDisplay pointer and a screen index as arguments. The only use for the native display pointer was to pass it back to the loader when looking up the __DRIscreen for the given screen index. Instead, let's just pass in the __DRIscreen pointer directly, which let's drop the __DRInativeDisplay type and the getScreen function. The assumption is now that the loader will be able to retrieve context from the __DRIscreen pointer when necessary.
* Add macros to generate CreateNewScreen entrypoint.Kristian Høgsberg2007-10-051-1/+19
|
* Remove XIDs from DRI interface (see #5714).Kristian Høgsberg2007-10-051-38/+17
|
* Add glut_fcb.c to the build and update to fix warnings (see bug 12405)Brian2007-09-121-2/+2
|
* Unbreak Linux builds with -fvisibility=hidden.Adam Jackson2007-08-231-16/+11
|
* more Mingw32 fixesZhang2007-07-273-9/+2
|
* Fix a number of MINGW32 issuesZhang2007-07-213-38/+47
|
* regeneratedBrian2007-06-291-0/+93
|
* a variety of fixes for MingWzhang2007-06-282-3/+18
|
* add glxtokens.h to xmesa_xf86.h as discussed on mailing listDave Airlie2007-05-261-0/+1
|
* Add interfaces for overriding texture images with driver specific 'offsets'.Michel Dänzer2007-05-221-0/+12
| | | | | To be used by AIGLX for GLX_EXT_texture_from_pixmap without several additional data copies.
* Fix xserver build after recent XMesa changes.Michel Dänzer2007-05-223-3/+31
| | | | Only build tested.
* Disable (at least for now) PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC typedef.Brian2007-05-191-0/+5
| | | | | | If an app (like progs/samples/blendxor.c) includes both gl.h and glext.h this typedef will get hit in both headers, causing an error. Possibly work around by bringing GL_NV_geometry_program4 items into gl.h.
* added texture_from_pixmap functionsBrian2007-05-191-2/+21
|
* Add enums and functions for GL_{MESA,EXT}_texture_array.Ian Romanick2007-05-161-0/+28
|
* add missing semicolonMatthias Hopf2007-04-241-1/+1
|
* import glxext.h version 19Brian2007-04-221-2/+2
|
* patch for Digital/Tru64 (bug 10635) - forwarded to OpenGL ARB as wellBrian2007-04-131-1/+1
|
* xmesa: drop unused XMesaPutImageHelper.George Sapountzis2007-04-131-2/+1
| | | | | | | | It could only be called from XMesaCopySubBuffer but this function is not used by XFree86. It seems that XMesaPutImageHelper would handle sub-images but never got finished. Proper sub-image helpers should be written if need be.
* xmesa: export xmesa functions used by xfree86.George Sapountzis2007-04-131-0/+15
| | | | | | | | | This uses xmesa.h as the GLcore interface and avoids adding an explicit GLcore inteface which would not be a proper interface anyway. It puts the declarations of the three functions specific for XMesa/XFree86 in xmesa.h, we can push them down to xmesa_xf86.h if hiding behind XFree86Server ifdef's is not enough.
* Remove SI imports/exports remnants.George Sapountzis2007-04-052-87/+0
|
* Clean and update XMesa/XFree86 interface.George Sapountzis2007-03-301-0/+1
| | | | | | | | | | | | | | | | Drop XMesaSetVisualDisplay(), XMesaReset(), no longer used. Add XMesaCopyContext() and move the GlxSetRenderTables() call for XGL within XMesaForceCurrent(). This is to make xserver/GL/mesa/X/xf86glx.c unaware of Mesa internals. Also, clean some ifdef's to make it clear that USE_XSHM and XFree86Server are mutually exclusive. Lastly, - move gcstruct.h from glxheader.h up to xmesa_xf86.h since it calls *gc->ops - drop GL/glxtokens.h from xm_api|dd.c, GLX tokens come from glcore.h and are used irrelevant of XFree86.
* updated version with new Khronos license/copyrightBrian2007-02-262-46/+34
|
* updated to version 18Brian2007-02-201-3/+70
|