summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2008-06-28egl: WinCE doesn't have sys/types.hJosé Fonseca1-1/+3
2008-06-27egl: Windows updates to the platform.h filesJonathan White2-15/+11
2008-06-24mesa: WGL is not part of the WinCE API.José Fonseca1-2/+3
Although it would be interesting having the GDI winsys running on WinCE several Windows GDI API functions and data structures are missing from WinCE headers, making this far from a trivial endeavor.
2008-06-24mesa: Don't include sys/types.h on WinCE.José Fonseca1-0/+2
We probably shouldn't be including sys/types.h at all, but let's leave that for another time.
2008-06-12revert the DRI2 commitsAlan Hourihane3-588/+341
2008-06-11add missed files for DRI2 mergeAlan Hourihane1-0/+134
2008-06-11Bring in DRI2 changesAlan Hourihane2-341/+454
2008-06-06egl: updated EGLAPI for WindowsJonathan White1-3/+7
2008-06-05egl: assorted fixes for WindowsJonathan White2-4/+18
Note that int32_t is typedef'd both in p_compiler.h and eglplatform.h
2008-06-04egl: new GLES/glplatform.h headerBrian Paul1-0/+76
2008-06-04egl: updated GLES/gl.h and GLES/glext.h headers from Khronos.orgBrian Paul2-356/+821
2008-06-04egl: added OpenGL ES 2.0 header files in new GLES2 directoryBrian Paul3-0/+1114
2008-06-04egl: created GLES/egl.h backward-compatibility header (see comments inside)Brian Paul1-0/+6
2008-06-04egl: moved egl.h into EGL/ directoryBrian Paul1-0/+0
2008-06-04egl: moved eglext.h into EGL/ directoryBrian Paul1-0/+0
2008-06-04remove old/unused foomesa.h example headerBrian Paul1-76/+0
2008-05-29Assorted Windows fixes (Karl Schultz)Brian Paul1-1/+1
2008-05-27obsolete with EGL 1.4Brian Paul1-100/+0
2008-05-27added EGL_MESA_screen_surface, EGL_MESA_copy_context extensionsBrian Paul1-0/+59
2008-05-27added typedefs for X/MesaBrian Paul1-0/+7
2008-05-27remove stray ! characterBrian Paul1-1/+1
2008-05-27new eglplatform.h from Khronos.org (replaces GLES/egltypes.h)Brian Paul1-0/+55
2008-05-27new eglext.h from KhronosBrian Paul1-0/+127
2008-05-27EGL 1.4 header from KhronosBrian Paul1-244/+279
2008-05-26Remove CVS keywords.José Fonseca1-2/+0
2008-05-23drop GLcoreGeorge Sapountzis1-73/+0
2008-05-20Add DRI driver that uses the mesa swrast module.George Sapountzis1-0/+57
2008-05-07mesa: update/add newer GL ES headersBrian Paul4-155/+1092
2008-04-23glcore: build from mesaGeorge Sapountzis1-0/+73
2008-03-31DRI interface changes and DRI2 direct rendering support.Kristian Høgsberg2-205/+215
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-25updated to version 40Brian1-3/+14
2008-03-24fix wrong values for GL_READ/DRAW_FRAMEBUFFER_BINDING_EXT tokensBrian1-2/+2
2008-03-09DRI2: Make setTexBuffer take a __DRIdrawable instead of a BO handle.Kristian Høgsberg1-7/+5
This fixes a problem where texturing from the same Pixmap more than once per batchbuffer would hang the DRI driver. We just use the region associated with the front left renderbuffer of the __DRIdrawable for texturing, which avoids creating different regions for the same BO. This change also make GLX_EXT_texture_from_pixmap work for direct rendering, since tracking the __DRIdrawable -> BO handle now uses the standard DRI2 event buffer. Of course, DRI2 direct rendering doesn't exist yet. Finally, this commit bumps the DRI interface version again, accounting for the change in the DRI_TEX_BUFFER extension and the change in commit 0bba0e5be7a4a7275dad1edc34bdcc134ea1f424 to pass in the event buffer head index on drawable creation.
2008-03-09DRI2: Add event buffer head as an argument to driCreateNewDrawable().Kristian Høgsberg1-0/+1
The DRI driver needs to know where in the buffer to start reading.
2008-03-03[dri2] Add tail pointer to reemitDrawableInfo callback.Kristian Høgsberg1-1/+2
When the DRI doesn't parse the event buffer for a while, the X server may overwrite data that the driver didn't get a chance to look at. The reemitDrawableInfo callback requests that the X server reemit all info for the specified drawable. To make use of this, the drive needs to know the new tail pointer so it know where to start reading from.
2008-02-29Use __DRIextension mechanism providing loader functionality to the driver.Kristian Høgsberg1-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.
2008-02-29Reduce the versioning madness required to create a DRI2 screen.Kristian Høgsberg1-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.
2008-02-28Convert crlf->lf line endings.José Fonseca1-79/+79
Windows/DOS users should enable core.autocrlf from now on: git config --global core.autocrlf true
2008-02-28Convert crlf->lf line endings.José Fonseca1-79/+79
Windows/DOS users should enable core.autocrlf from now on.
2008-02-25Remove GetMSC DriverAPI function.Kristian Høgsberg1-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.
2008-02-14Add TTM buffer object based texture from pixmap implementation.Kristian Høgsberg1-0/+20
Currently only implemented for intel hw.
2008-02-14Add new DRI2 infrastructure.Kristian Høgsberg2-6/+163
2007-11-05Fix GLX build of xserver master branch.Michel Dänzer1-0/+5
The internal CreatePixmap API has been extended.
2007-10-29Refactor and fix core vblank supportJesse Barnes1-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.
2007-10-14Add GL_CORE_WINDOWS define to glcore.hGeorge Sapountzis1-0/+1
This is for consistency with glproto. The GL_CORE defines should probably be dropped. ---- Author: Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> Date: Mon Jun 21 13:35:05 2004 +0000 Bug 782: Merge native OpenGL for Windows from CYGWIN branch
2007-10-11Add a version field to __DRIextension.Kristian Høgsberg1-0/+23
2007-10-11Move new texOffset extension to the new extension mechanism.Kristian Høgsberg1-12/+17
2007-10-11Convert a left-over private void * to __DRIcontext *.Kristian Høgsberg1-1/+1
2007-10-11Remove now unused getProcAddress from DRIinterfaceMethods.Kristian Høgsberg1-38/+0
2007-10-11Add a DRI_ReadDrawable marker extension to signal read drawable capability.Kristian Høgsberg1-0/+5