summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau
AgeCommit message (Collapse)Author
2011-03-13nv50,nvc0: clean up flushesChristoph Bumiller
2011-03-11gallium: cleanup fence_signalled and fence_finishMarek Olšák
So that they don't have the driver-specific param and return type.
2011-03-11gallium: kill is_resource_referencedMarek Olšák
Only st/xorg used it and even incorrectly with regards to pipelined transfers.
2011-03-08gallium: add timeout parameter to fence_finishMarek Olšák
This is a follow-up to the ARB_sync patch for st/mesa and completes the ARB_sync implementation.
2011-03-03nouveau: allow pipe driver to define which buffers should start in sysmemBen Skeggs
PIPE_BIND_CONSTANT_BUFFER alone was OK for nv50/nvc0, but nv30 will need to be able to set others on certain chipsets. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: remove nouveau_stateobj.hBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: ensure vbo_dirty is set when buffer write transfer completeBen Skeggs
This introduces a shared nouveau_context struct to track such things. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: fix leak of nouveau_mman structsBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nv50: sync textures with render targets ourselvesBen Skeggs
Port of the nvc0 commit doing the same. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nv50: move onto common linear buffer managerBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: common linear buffer manager, ported from nv50/nvc0 driversBen Skeggs
nv50_resource is being called nv04_resource now temporarily, to avoid a naming conflict with nouveau_resource from libdrm. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: create linear gart/vram mman in common screen initBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: fix fence_ref() where fence and *ref are the same fenceBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: fix compiler complaintBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nv50: make mm available as common codeBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-03-01nouveau: move nv50/nvc0 fencing to common location, and modify slightlyBen Skeggs
Modified from original to remove chipset-specific code, and to be decoupled from the mm present in said drivers. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2011-01-17nouveau: fix build against out of tree libdrmDave Airlie
For doing builds against a separated libdrm these cflags are needed. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-12-21Merge remote branch 'origin/master' into nvc0-newBen Skeggs
Conflicts: src/gallium/drivers/nouveau/nouveau_winsys.h
2010-12-21nouveau: fix includes for latest libdrmBen Skeggs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2010-11-12nvc0: import nvc0 gallium driverChristoph Bumiller
2010-10-12nouveau: Get larger push buffers.Francisco Jerez
Useful to amortize the command submission/reloc overhead (e.g. etracer goes from 72 to 109 FPS on nv4b).
2010-09-18nv50: fix typo in fifo packet length limitChristoph Bumiller
2010-09-05nouveau: delete nouveau_class.h, move nv50 regs to nv50_reg.hLuca Barbieri
nv50 should switch to rules-ng-ng too at some point. The classic Mesa Nouveau driver also includes a copy of nouveau_class.h, and should convert to rules-ng-ng too and remove it.
2010-09-05nvfx: move nv04_2d to rules-ng-ngLuca Barbieri
2010-09-05nvfx: switch to rules-ng-ng register headersLuca Barbieri
This is the new register generation toolkit in use by nouveau. As far as I know, this is the best register description toolkit in existence, and you should use it too for your hardware :) Thanks to Marcin Kościelnicki for inventing it and performing invaluable reverse engineering work of nVidia chips.
2010-09-05nvfx: pause occlusion queries during blitter usageLuca Barbieri
Thanks for Dave Airlie and Jerome Glisse for their code which made me realize I need this too.
2010-09-04nvfx: support rendering to more formatsLuca Barbieri
2010-09-04nvfx: support all coord conventions in hardwareLuca Barbieri
2010-09-04nvfx: set magic bit to round NPOT mipmap sizes down and not upLuca Barbieri
Does any API even use rounding-up?
2010-08-26nouveau: handle early initialization errorsMarcin Slusarz
handle very early errors in pipe_screen creation (failure of nouveau_screen_init in nv50_screen_create) Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-08-21nvfx: support flatshade_firstLuca Barbieri
2010-08-21nvfx: rewrite draw code and buffer codeLuca Barbieri
This is a full rewrite of the drawing and buffer management logic. It offers a lot of improvements: 1. A copy of buffers is now always kept in system memory. This is necessary to allow software processing of them, which is necessary or improves performance in many cases. 2. Support for pushing vertices on the FIFO, with index lookup if necessary. 3. "Smart" draw code that tries to intelligently choose the cheapest way to draw something: whether to use inline vertices or hardware vertex buffer, and whether to use hardware index buffers 4. Support for all vertex formats supported by the hardware 5. Usage of translate to push vertices, supporting all formats that are sensible to use as vertex formats 6. Support for base vertex 7. Usage of Ben Skeggs' primitive splitter originally for nv50, allowing correct splitting of line loops, triangle fans, etc. 8. Support for instancing 9. Precomputation using the vertex elements CSO Thanks to Ben Skeggs for his primitive splitter originally for nv50. Thanks to Christoph Bumiller for his nv50 push code, that was the basis of this work, even though I changed his code dramatically, in particular to replace his ad-hoc vertex data emitter with translate. The changes could also go into nv50 too, but there are substantial differences due to the additional nv50 hardware features.
2010-08-21nvfx: refactor sampling code, add support for swizzles and depth texLuca Barbieri
This is a significant refactoring of the sampling code that: - Moves all generic functions in nvfx_fragtex.c - Adds a driver-specific sampler view structure and uses it to precompute texture setup as it should be done - Unifies a bit more of code between nv30 and nv40 - Adds support for sampler view swizzles - Support for specifying as sampler view format different from the resource one (only trivially) - Support for sampler view specification of first and last level - Support for depth textures on nv30, both for reading depth and for compare - Support for sRGB textures - Unifies the format table between nv30 and nv40 - Expands the format table to include essentially all supportable formats except mixed sign and "autonormal" formats - Fixes the "is format supported" logic, which was quite broken, and makes it use the format table Only tested on nv30 currently.
2010-08-11auxiliary: move Ben Skeggs' primitive splitter to common codeLuca Barbieri
This is a simple framework that handles splitting primitives in an abstract way. The user has to specify the primitive start, start index and count. Then, it can ask the primitive splitter to "draw" a chunk of the primitive, staying under a given vertex/index budget. The primitive splitter will then call user-supplied functions to emit a range of vertices/indices, as well as switch the edgeflag on or off. This is particularly useful for hardware that either has limits on the vertex count field, or where vertices are pushed on a FIFO or temporary buffer of limited size. Note that unlike other splitters, it does not manipulate data in any way, and merely asks a callback to do so, in vertex intervals.
2010-08-09nouveau: fix maps with PIPE_TRANSFER_UNSYNCHRONIZED | PIPE_TRANSFER_DONTBLOCKLuca Barbieri
In this case, we were incorrectly prioritizing PIPE_TRANSFER_DONTBLOCK over PIPE_TRANSFER_UNSYNCHRONIZED. This can lead to failure in the Mesa VBO draw paths that end up specifying both, but don't expect map to fail (in particular, the problem manifested as a leak of buffer objects in teapot with other changes).
2010-08-06nouveau: fix potential NULL-ptr dereference in nouveau_stateobj.hMaarten Maathuis
- This can only be triggered when DEBUG_NOUVEAU_STATEOBJ is active. - Also remove a redundant pointer assignment. Reported-by: Roy Spliet <r.spliet@student.tudelft.nl> Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
2010-07-16nouveau: s/__func__/__FUNCTION__/Vinson Lee
2010-07-16nouveau: s/snprintf/util_snprintf/Vinson Lee
2010-07-16nouveau: s/inline/INLINE/Vinson Lee
2010-06-24nouveau: Remove reference to drm_apiJakob Bornecrantz
2010-05-21Merge branch 'gallium-msaa'Roland Scheidegger
Conflicts: src/mesa/state_tracker/st_gen_mipmap.c src/mesa/state_tracker/st_texture.c
2010-05-17nouveau: adapt to interface changesRoland Scheidegger
this probably needs further cleanup (just getting a surface for the resource seems quite nonoptimal and potentially cause unnecessary copies I think)
2010-05-05nouveau: only advertise PIPE_FORMAT_DXT* if s3tc availableXavier Chantry
2010-04-24nouveau: Add to SCons build.Vinson Lee
2010-04-18nouveau: Add missing header.Vinson Lee
2010-04-15nouveau: replace vtxbuf/idxbuf caps with BO_ flags in nouveau_screen and fix ↵Luca Barbieri
uncached reads on nv3x Faster, simpler and more flexible. Also, we set those flags properly on nv3x so that we don't allocate buffers in GART. Since on AGP GART is uncached, OpenGL doesn't distinguish between vertex and index buffers, and we don't support hardware index buffers for now, this caused uncached reads. Also check bind and not usage for PIPE_BIND_* flags, got broken in the gallium-resources transition.
2010-04-12nvfx: add support for ARB_half_float_vertexLuca Barbieri
2010-04-12nouveau: add state buffers, lightweight replacement for state objectsLuca Barbieri
Just a dumb buffer, allowed by the RING_3D/fixed subchannel binding and no support for relocations. This is *much* faster than state objects.
2010-04-12nouveau: don't autobind in state objects relocationsLuca Barbieri
Autobinding creates additional pushbuffer usage which may not be accounted in callers, and is also slow. The next relocations patch depends on this for correctness. Assert instead if the objects are not bound, which should happen at screen creation time.
2010-04-12nouveau: bind the 3D engine to subchannel 7 and add RING_3DLuca Barbieri
RING_3D creates a method start for subchannel 7. Bind the 3D engine to a fixed subchannel to make it work This is much faster than the old BEGIN_RING, since we don't need to waste cycles trying to "autobind" stuff, when a fast static binding is perfectly good. Subchannel 7 is chosen because the kernel takes up the lowest ones.