summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nouveau_screen.c
AgeCommit message (Collapse)Author
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