summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'vdpau/pipe-video' into pipe-videoChristian König2011-01-101-7/+10
|\ | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c src/gallium/drivers/softpipe/sp_video_context.c src/gallium/include/pipe/p_format.h src/gallium/state_trackers/xorg/xvmc/context.c src/gallium/tests/unit/SConscript
| * vl: pipe-video branch merged with Königs pipe-video branchThomas Balling Sørensen2010-10-261-30/+7
| |
| * Merge branch 'pipe-video' of ↵Thomas Balling Sørensen2010-10-265-0/+74
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://anongit.freedesktop.org/~deathsimple/xvmc-r600 into pipe-video Conflicts: configure.ac src/gallium/auxiliary/vl/vl_compositor.c src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c src/gallium/drivers/softpipe/sp_video_context.c src/gallium/include/pipe/p_defines.h src/gallium/include/pipe/p_screen.h
| * \ Merge branch 'master' into pipe-videoThomas Balling Sørensen2010-10-2687-2800/+4596
| |\ \ | | | | | | | | | | | | | | | | Conflicts: src/gallium/include/pipe/p_format.h
| * | | vl: bitstream decoder finds startcodesThomas Balling Sørensen2010-10-081-0/+1
| | | |
| * | | Merge branch 'master' of ↵Thomas Balling Sørensen2010-10-052-4/+8
| |\ \ \ | | | | | | | | | | | | | | | ssh://cgit.freedesktop.org/~tball/mesa-gallium-vdpau into pipe-video
| * | | | vl: changed video pipe to use the new gallium API within masterThomas Balling Sørensen2010-10-051-25/+27
| | | | |
| * | | | Merge branch 'master' into pipe-videoThomas Balling Sørensen2010-10-05422-28551/+66825
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configs/linux-dri configure.ac src/gallium/drivers/nvfx/Makefile src/gallium/include/pipe/p_defines.h src/gallium/include/pipe/p_screen.h src/gallium/include/state_tracker/dri1_api.h src/gallium/include/state_tracker/drm_api.h src/gallium/tests/python/samples/tri.py src/gallium/tests/trivial/Makefile src/gallium/tests/unit/Makefile src/gallium/tests/unit/SConscript src/gallium/tests/unit/u_format_test.c src/gallium/winsys/nouveau/drm/nouveau_drm_api.c
* | | | | | r600g: check if hardware blits are possible bevore enabling tillingChristian König2011-01-091-49/+50
| | | | | |
* | | | | | r600g: some merge fixesChristian König2011-01-091-6/+14
| | | | | |
* | | | | | Merge remote branch 'origin/master' into pipe-videoChristian König2011-01-08128-681/+18480
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac src/gallium/drivers/r600/eg_asm.c src/gallium/drivers/r600/r600_asm.c src/gallium/drivers/r600/r600_asm.h src/gallium/include/pipe/p_format.h src/gallium/targets/dri-nouveau/Makefile
| * | | | | | r300g: fix a surface leak when flushing ZMASKMarek Olšák2011-01-081-0/+1
| | | | | | |
| * | | | | | r300g: rework command submission and resource space checkingMarek Olšák2011-01-085-97/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation behind this rework is to get some speed by reducing CPU overhead. The performance increase depends on many factors, but it's measurable (I think it's about 10% increase in Torcs). This commit replaces libdrm's radeon_cs_gem with our own implemention. It's optimized specifically for r300g, but r600g could use it as well. Reloc writes and space checking are faster and simpler than their counterparts in libdrm (the time complexity of all the functions is O(1) in nearly all scenarios, thanks to hashing). (libdrm's radeon_bo_gem is still being used in the driver.) It works like this: cs_add_reloc(cs, buf, read_domain, write_domain) adds a new relocation and also adds the size of 'buf' to the used_gart and used_vram winsys variables based on the domains, which are simply or'd for the accounting purposes. The adding is skipped if the reloc is already present in the list, but it accounts any newly-referenced domains. cs_validate is then called, which just checks: used_vram/gart < vram/gart_size * 0.8 The 0.8 number allows for some memory fragmentation. If the validation fails, the pipe driver flushes CS and tries do the validation again, i.e. it validates only that one operation. If it fails again, it drops the operation on the floor and prints some nasty message to stderr. cs_write_reloc(cs, buf) just writes a reloc that has been added using cs_add_reloc. The read_domain and write_domain parameters have been removed, because we already specify them in cs_add_reloc. The space checking has been tested by putting small values in vram/gart_size variables.
| * | | | | | nvc0: fix reloc domain conflict on buffer migrationChristoph Bumiller2011-01-081-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Occurred because the code assumed that buf->domain would remain equal to old_domain.
| * | | | | | nvc0: upload user buffers only from draw info min to max indexChristoph Bumiller2011-01-082-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are actually applications that profit immensely from this.
| * | | | | | nvc0: fix emission of first 3 u8 indices to RING_NIChristoph Bumiller2011-01-081-1/+1
| | | | | | |
| * | | | | | nvc0: reset mt transfer address after read loop over layersChristoph Bumiller2011-01-081-0/+1
| | | | | | |
| * | | | | | nvc0: tie buffer memory release to the buffer fenceChristoph Bumiller2011-01-081-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... instead of the next fence to be emitted. This way we have a chance to reclaim the storage earlier.
| * | | | | | r300g: Remove invalid assertion.Łukasz Krotowski2011-01-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invalid after be1af4394e060677b7db6bbb8e3301e38a3363da (user buffer creation with width0 == ~0). Signed-off-by: Marek Olšák <[email protected]>
| * | | | | | r600g: Also set const_offset if the buffer is not a user buffer in ↵Henri Verbeet2011-01-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | r600_upload_const_buffer().
| * | | | | | r600g: Update some comments for Evergreen.Henri Verbeet2011-01-071-1/+3
| | | | | | |
| * | | | | | r600g: Split ALU clauses based on used constant cache lines.Henri Verbeet2011-01-072-21/+129
| | | | | | |
| * | | | | | r600g: Consistently use the copy of the alu instruction in ↵Henri Verbeet2011-01-071-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | r600_bc_add_alu_type().
| * | | | | | r600g: Store kcache settings as an array.Henri Verbeet2011-01-073-24/+25
| | | | | | |
| * | | | | | r300g: derive user buffer sizes at draw timeMarek Olšák2011-01-079-104/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This only uploads the [min_index, max_index] range instead of [0, userbuf size], which greatly speeds up user buffer uploads. This is also a prerequisite for atomizing vertex arrays in st/mesa.
| * | | | | | r600g: allow constant buffers to be user buffers.Dave Airlie2011-01-076-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides an upload facility for the constant buffers since Marek's constants in user buffers changes. gears at least work on my evergreen now. Signed-off-by: Dave Airlie <[email protected]>
| * | | | | | r600g: add support for NI (Northern Islands) GPUsAlex Deucher2011-01-064-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for Barts, Turks, and Caicos asics.
| * | | | | | svga: Ensure that the wrong vdecls don't get used in swtnl pathJakob Bornecrantz2011-01-063-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The draw module set new state that didn't require swtnl which caused need_swtnl to be unset. This caused the call from to svga_update_state(svga, SVGA_STATE_SWTNL_DRAW) from the vbuf backend to overwrite the vdecls we setup there to be overwritten with the real buffers vdecls.
| * | | | | | r300g: fix corruption when nr_cbufs==0 and multiwrites enabledMarek Olšák2011-01-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=32634
| * | | | | | r300g: remove the buffer range checkingMarek Olšák2011-01-062-60/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's no longer needed because the upload buffer remains mapped while the CS is being filled (openarena, ut2004 and others that this code was for do not use VBOs by default).
| * | | | | | r300g: skip buffer validation of upload buffers when appropriateMarek Olšák2011-01-065-8/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | because the upload buffers are reused for subsequent draw operations.
| * | | | | | gallium: drivers should reference vertex buffersMarek Olšák2011-01-0614-37/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | So that a state tracker can unreference them after set_vertex_buffers.
| * | | | | | u_upload_mgr: new featuresMarek Olšák2011-01-064-10/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added a parameter to specify a minimum offset that should be returned. r300g needs this to better implement user buffer uploads. This weird requirement comes from the fact that the Radeon DRM doesn't support negative offsets. - Added a parameter to notify a driver that the upload flush occured. A driver may skip buffer validation if there was no flush, resulting in a better performance. - Added a new upload function that returns a pointer to the upload buffer directly, so that the buffer can be filled e.g. by the translate module.
| * | | | | | nvc0: Fix typo of nvc0_mm.c in SConscript.Vinson Lee2011-01-061-1/+1
| | | | | | |
| * | | | | | r600g: support up to 64 shader constantsAlex Deucher2011-01-042-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the r600 ISA: Each ALU clause can lock up to four sets of constants into the constant cache. Each set (one cache line) is 16 128-bit constants. These are split into two groups. Each group can be from a different constant buffer (out of 16 buffers). Each group of two constants consists of either [Line] and [Line+1] or [line + loop_ctr] and [line + loop_ctr +1]. For supporting more than 64 constants, we need to break the code into multiple ALU clauses based on what sets of constants are needed in that clause. Note: This is a candidate for the 7.10 branch. Signed-off-by: Alex Deucher <[email protected]>
| * | | | | | Merge remote branch 'origin/nvc0'Christoph Bumiller2011-01-0446-11/+17354
| |\ \ \ \ \ \
| | * | | | | | nvc0: fix index size method value for u8 indicesChristoph Bumiller2011-01-041-8/+2
| | | | | | | |
| | * | | | | | nvc0: set the correct FP header bit for multiple colour outputsChristoph Bumiller2011-01-041-1/+1
| | | | | | | |
| | * | | | | | nvc0: delete memory caches and fence on screen destructionChristoph Bumiller2011-01-044-0/+50
| | | | | | | |
| | * | | | | | nvc0: use mov instead of ld for scalar const loadsChristoph Bumiller2011-01-041-1/+6
| | | | | | | |
| | * | | | | | nvc0: fix resource unmap after vertex pushChristoph Bumiller2011-01-043-10/+8
| | | | | | | |
| | * | | | | | nvc0: use the proper typed opcodes in constant foldingChristoph Bumiller2011-01-041-86/+92
| | | | | | | |
| | * | | | | | nvc0: demagic GP invocation count bitfieldChristoph Bumiller2011-01-041-2/+16
| | | | | | | |
| | * | | | | | nvc0: rewrite the 9097 GRAPH macrosChristoph Bumiller2011-01-042-177/+192
| | | | | | | |
| | * | | | | | drm/nvc0: don't un-bind every subchannel on initBen Skeggs2010-12-301-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial values in the grctx are 0x0000 anyway, and re-binding them all to 0x0000 destroys some init done by the nouveau drm. Signed-off-by: Ben Skeggs <[email protected]>
| | * | | | | | nvc0: reference the vertex buffersChristoph Bumiller2010-12-271-0/+6
| | | | | | | |
| | * | | | | | nvc0: reenable some shader optimizationsChristoph Bumiller2010-12-272-51/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CSE and constants folding.
| | * | | | | | nvc0: use VTX_ATTR for stride 0 vertex attributesChristoph Bumiller2010-12-271-30/+69
| | | | | | | |
| | * | | | | | nvc0: implement VRAM buffer transfers with bounce buffersChristoph Bumiller2010-12-2712-116/+336
| | | | | | | |
| | * | | | | | nvc0: init miptree transfer layer strideChristoph Bumiller2010-12-271-1/+2
| | | | | | | |