summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_screen.c
AgeCommit message (Collapse)Author
2010-10-13Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg
2010-09-16dri/nouveau: Don't request a fake front unnecessarily.Francisco Jerez
2010-04-22DRI2: add config query extensionJesse Barnes
Add a new DRI2 configuration query extension. Allows for DRI2 client code to query for common DRI2 configuration options.
2010-02-25dri/nouveau: Implement EXT_texture_from_pixmap.Francisco Jerez
2010-02-17dri/nouveau: Some multithreaded rendering fixes.Francisco Jerez
2010-02-16dri/nouveau: Use event driven buffer validation.Francisco Jerez
2010-02-10dri: Allow selective generation of accum. buffer configsIan Romanick
Modify the interface to driCreateConfigs allowing drivers to not expose configs with an accumuation buffer. All of the drivers calling function have been updated to pass true for the accumulation selector. This maintains the current behavior. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2010-02-04Import a classic DRI driver for nv0x-nv2x.Francisco Jerez
2008-07-14nouveau: say goodbye to the old DRI driver...Stephane Marchesin
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-02nouveau: compilation fixesPatrice Mandin
2008-02-29Use __DRIextension mechanism providing loader functionality to the driver.Kristian Høgsberg
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-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-12nouveau: ddx versioning changedBen Skeggs
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-10Pull createNewScreen entry point into dri_util.c.Kristian Høgsberg
This pulls the top level createNewScreen entry point out of the drivers and rewrites __driUtilCreateNewScreen in dri_util.c to be the new entry point. The change moves more logic into the common/ layer and changes the createNewScreen entry point to only be defined in one place.
2007-10-10Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.Kristian Høgsberg
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.
2007-08-15nouveau: Always render offscreen, emulate front buffer rendering.Ben Skeggs
2007-08-15nouveau: Lets only do private buffers.Ben Skeggs
2007-08-07nouveau: update to DRM API patchlevel 10Carlos Martín Nieto
Finally let DRI build for nouveau.
2007-07-12nouveau: match drm 0.0.9 interfaceBen Skeggs
2007-07-11bumped nouveau DRM interface version numberArthur Huillet
2007-06-29nouveau: match drm changes (0.0.7)Ben Skeggs
2007-03-26nouveau: match drm version bumpBen Skeggs
2007-03-21nouveau: update for drm interface changes (0.0.5)Ben Skeggs
2007-03-06Fix/improve framebuffer object reference counting.Brian
Use _mesa_reference_framebuffer() and _mesa_unreference_framebuffer() functions to be sure reference counting is done correctly. Additional assertions are done too. Note _mesa_dereference_framebuffer() renamed to "unreference" as that's more accurate.
2007-02-28nouveau: drm interface changesBen Skeggs
2007-01-25nouveau: and here's the "oops, I suck" commit :)Ben Skeggs
2007-01-25nouveau: some extra debug outputBen Skeggs
2007-01-19nouveau: bump drm patchlevelBen Skeggs
2007-01-15nouveau: fail CreateScreen on unknown cards instead of guessing.Ben Skeggs
2007-01-02nouveau: bump drm patchlevel.Ben Skeggs
2006-12-24nouveau: Kill some compile warnings.Ben Skeggs
2006-12-23nouveau: Don't fill nrb->dPriv for private buffersBen Skeggs
2006-12-23nouveau: get 16bpp workingBen Skeggs
2006-12-08Skeletal extension handling across chipsets.Ben Skeggs
2006-12-08oops, typoBen Skeggs
2006-12-08Create visuals for modes the ddx providesBen Skeggs
2006-12-08Some work on buffer handling, most likely not entirely correct andBen Skeggs
incomplete. But, it works well enough that windows can be moved/resized.
2006-12-03Merge the pciid work. Use lock step versioning with the drm.Stephane Marchesin
2006-11-12Some more nouveau_screen.c setup, not sure how correct it is yet though..Ben Skeggs
2006-11-11Some nouveau_screen work for darktamaStephane Marchesin
2006-11-05Architect the DRI :Stephane Marchesin
- make use of the autogenerated nouveau_reg.h file - add object creation to the DRI - some work on screen and context creation