summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau
AgeCommit message (Collapse)Author
2010-02-17dri/nouveau: Some multithreaded rendering fixes.Francisco Jerez
2010-02-17nouveau: fix legacy dri driver buildJohannes Obermayr
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-06-21replace __inline and __inline__ with INLINE macroBrian Paul
2008-06-21replace __inline and __inline__ with INLINE macroBrian Paul
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
2008-01-06Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian
Each array element is now a BUFFER_x token rather than a BUFFER_BIT_x bitmask. The number of active color buffers is specified by _NumColorDrawBuffers. This builds on the previous DrawBuffer changes and will help with drivers implementing GL_ARB_draw_buffers.
2008-01-06Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian
These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
2007-11-01nouveau: ppc, swap fragment programs on big endian systems.Dave Airlie
Thanks to the PS3 RSX project for figuring this out.
2007-10-30More vblank cleanups.Michel Dänzer
* Fix crash at context creation in most drivers supporting vblank. * Don't pass vblank sequence or flags to functions that get passed the drawable private already. * Attempt to initialize vblank related drawable private fields just once per drawable. May need more work in some drivers.
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-12Merge branch 'dri2'Kristian Høgsberg
Conflicts: src/mesa/drivers/dri/i915/intel_screen.c
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-10-06nouveau: move nv10 clear command, for usage by other gpuPatrice Mandin
2007-10-04nouveau: Replace removed device classes with their proper labels.Maarten Maathuis
2007-09-20nouveau: add GeForce 7300 SE to card listDave Airlie
2007-09-19nouveau : nv1x use OUT_RING_CACHE_FORCE for ↵Matthieu Castet
NV10_TCL_PRIMITIVE_3D_PROJECTION_MATRIX as strange results appear when the matrix is partialy updated.
2007-09-19nouveau : add OUT_RING_CACHE_FORCE* to add stuff in the cache even if the ↵Matthieu Castet
value didn't change
2007-09-19nouveau : add GL_FOG_COLOR + fix a compil errorMatthieu Castet
2007-09-19nouveau: nv10: color logic op only for nv11+Patrice Mandin
2007-09-16nouveau : avoid vertex_size / 4 for each vertex opsMatthieu Castet
2007-09-16nouveau : use GLfloat instead of uint32_t. After all, our vertex attributes ↵Matthieu Castet
are float.
2007-09-16nouveau : implement nv10_render_pointsMatthieu Castet
2007-09-16nouveau : fix nv10_render functionsMatthieu Castet
use _tnl_RenderClipped helper functions that will call the right driver callback clean nv10_render_generic_primitive_elts to match nv10_render style
2007-09-16nouveau : opps I introduce a bug when cleaning vertex pos attribute swap patchMatthieu Castet
2007-09-16nouveau : nv1x pos vertex attribute need to be the first in mesa.Matthieu Castet
Swap it latter in order it match hw format.
2007-09-15nouveau : use new nouveau_reg.h with correct Bracket in macroMatthieu Castet
2007-09-14nouveau : check for nmesa->state_cache.atoms overflowMatthieu Castet
2007-09-14nouveau : fix NV10_TCL_PRIMITIVE_3D_CLIP_PLANEMatthieu Castet
2007-09-13nouveau : diable broken light enable on nv10Matthieu Castet
2007-09-06nouveau: nv10: check NULL pointersPatrice Mandin
2007-09-06nouveau: init depth rangePatrice Mandin
2007-09-06nouveau: nv10: replace macros by loop to set vertex attributesPatrice Mandin
2007-09-06nouveau: need parenthesis around macro params, generator should be fixedPatrice Mandin
2007-09-05nouveau: nv10: emit vertex data in proper order for nv1x hwPatrice Mandin
2007-09-04nouveau: who needs nv03 ?Stephane Marchesin
2007-09-04nouveau: nv10: need to transpose mesa model+proj matrix for hwPatrice Mandin
2007-09-03nouveau: nv10: forgot function to set modelview matrixPatrice Mandin
2007-09-03nouveau: separate modelview and projection matrix updatesPatrice Mandin
2007-08-31nouveau: nv10: remove setting projection matrix when scaling viewportPatrice Mandin
2007-08-31nouveau: add hw-dependent function to update modelview*projection matrixPatrice Mandin
2007-08-27nouveau: nv10: set total stride of vertex array for POS attributePatrice Mandin