aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau
Commit message (Collapse)AuthorAgeFilesLines
* DRI interface changes and DRI2 direct rendering support.Kristian Høgsberg2008-03-311-75/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* nouveau: compilation fixesPatrice Mandin2008-03-021-2/+2
|
* Use __DRIextension mechanism providing loader functionality to the driver.Kristian Høgsberg2008-02-291-5/+7
| | | | | | | 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.
* Remove GetMSC DriverAPI function.Kristian Høgsberg2008-02-251-1/+0
| | | | | | | | | | | 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.
* nouveau: ddx versioning changedBen Skeggs2008-02-121-1/+6
|
* Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian2008-01-062-2/+2
| | | | | | | 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.
* Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian2008-01-062-9/+8
| | | | | | | | | | | 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...
* nouveau: ppc, swap fragment programs on big endian systems.Dave Airlie2007-11-013-5/+16
| | | | Thanks to the PS3 RSX project for figuring this out.
* More vblank cleanups.Michel Dänzer2007-10-301-1/+7
| | | | | | | | * 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.
* Refactor and fix core vblank supportJesse Barnes2007-10-293-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge branch 'dri2'Kristian Høgsberg2007-10-121-58/+38
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915/intel_screen.c
| * Pull createNewScreen entry point into dri_util.c.Kristian Høgsberg2007-10-101-58/+38
| | | | | | | | | | | | | | | | 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.
| * Drop __DRInativeDisplay and pass in __DRIscreen pointers instead.Kristian Høgsberg2007-10-101-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | nouveau: move nv10 clear command, for usage by other gpuPatrice Mandin2007-10-064-83/+115
|/
* nouveau: Replace removed device classes with their proper labels.Maarten Maathuis2007-10-041-33/+33
|
* nouveau: add GeForce 7300 SE to card listDave Airlie2007-09-201-0/+1
|
* nouveau : nv1x use OUT_RING_CACHE_FORCE for ↵Matthieu Castet2007-09-191-2/+2
| | | | | | NV10_TCL_PRIMITIVE_3D_PROJECTION_MATRIX as strange results appear when the matrix is partialy updated.
* nouveau : add OUT_RING_CACHE_FORCE* to add stuff in the cache even if the ↵Matthieu Castet2007-09-191-4/+30
| | | | value didn't change
* nouveau : add GL_FOG_COLOR + fix a compil errorMatthieu Castet2007-09-191-3/+14
|
* nouveau: nv10: color logic op only for nv11+Patrice Mandin2007-09-191-2/+8
|
* nouveau : avoid vertex_size / 4 for each vertex opsMatthieu Castet2007-09-161-13/+12
|
* nouveau : use GLfloat instead of uint32_t. After all, our vertex attributes ↵Matthieu Castet2007-09-161-10/+10
| | | | are float.
* nouveau : implement nv10_render_pointsMatthieu Castet2007-09-161-1/+28
|
* nouveau : fix nv10_render functionsMatthieu Castet2007-09-161-37/+15
| | | | | use _tnl_RenderClipped helper functions that will call the right driver callback clean nv10_render_generic_primitive_elts to match nv10_render style
* nouveau : opps I introduce a bug when cleaning vertex pos attribute swap patchMatthieu Castet2007-09-161-2/+2
|
* nouveau : nv1x pos vertex attribute need to be the first in mesa.Matthieu Castet2007-09-161-14/+58
| | | | Swap it latter in order it match hw format.
* nouveau : use new nouveau_reg.h with correct Bracket in macroMatthieu Castet2007-09-155-370/+3863
|
* nouveau : check for nmesa->state_cache.atoms overflowMatthieu Castet2007-09-141-0/+1
|
* nouveau : fix NV10_TCL_PRIMITIVE_3D_CLIP_PLANEMatthieu Castet2007-09-142-3/+3
|
* nouveau : diable broken light enable on nv10Matthieu Castet2007-09-131-1/+11
|
* nouveau: nv10: check NULL pointersPatrice Mandin2007-09-061-2/+6
|
* nouveau: init depth rangePatrice Mandin2007-09-061-0/+1
|
* nouveau: nv10: replace macros by loop to set vertex attributesPatrice Mandin2007-09-061-54/+41
|
* nouveau: need parenthesis around macro params, generator should be fixedPatrice Mandin2007-09-061-1/+1
|
* nouveau: nv10: emit vertex data in proper order for nv1x hwPatrice Mandin2007-09-051-22/+56
|
* nouveau: who needs nv03 ?Stephane Marchesin2007-09-043-13/+0
|
* nouveau: nv10: need to transpose mesa model+proj matrix for hwPatrice Mandin2007-09-043-14/+5
|
* nouveau: nv10: forgot function to set modelview matrixPatrice Mandin2007-09-031-1/+11
|
* nouveau: separate modelview and projection matrix updatesPatrice Mandin2007-09-037-34/+32
|
* nouveau: nv10: remove setting projection matrix when scaling viewportPatrice Mandin2007-08-311-30/+11
|
* nouveau: add hw-dependent function to update modelview*projection matrixPatrice Mandin2007-08-317-0/+85
|
* nouveau: nv10: set total stride of vertex array for POS attributePatrice Mandin2007-08-271-9/+15
|
* nouveau: nv10: also set modelview0 matrix to identityPatrice Mandin2007-08-251-1/+5
|
* nouveau: nv10: add a scissor func, do not cache viewport settingsPatrice Mandin2007-08-251-28/+68
|
* nouveau: nv10: properly set viewport and projectionPatrice Mandin2007-08-251-3/+3
|
* nouveau: nv10: set projection matrix from viewport sizePatrice Mandin2007-08-221-18/+33
|
* nouveau: nv10: initialize more of nv10 tcl enginePatrice Mandin2007-08-221-0/+102
|
* nouveau: nv10: Move some initialization stuffPatrice Mandin2007-08-211-13/+23
|
* nouveau: Use proper notifier objectPatrice Mandin2007-08-211-2/+2
|
* nouveau: nv10: Remove commented, unsupported by hw commandPatrice Mandin2007-08-211-7/+0
|