summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
Commit message (Collapse)AuthorAgeFilesLines
* i915g/winsys: buffer validation supportDaniel Vetter2011-02-272-0/+30
| | | | | | | v2: Add the batch bo to the libdrm validation lost, for otherwise libdrm won't take previously used buffers into account. Signed-off-by: Daniel Vetter <[email protected]>
* i915g: add raw batchbuffer dumping in drm winsysDaniel Vetter2011-02-273-0/+11
| | | | | | | | | These files can be decoded with intel_dump_decode from the intel-gpu-tools available at: http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/ Signed-off-by: Daniel Vetter <[email protected]>
* i915g: Use the same debug env vars in drm and sw winsysJakob Bornecrantz2011-02-261-1/+1
|
* i915g: Use unchecked writes in sw winsys batchbufferJakob Bornecrantz2011-02-261-3/+3
|
* scons: Reduce all Cygwin platform names to 'cygwin'.Vinson Lee2011-02-241-1/+1
| | | | | | | | | | | platform.system in SCons on Cygwin includes the OS version number. Windows XP - CYGWIN_NT-5.1 Windows Vista - CYGWIN_NT-6.0 Windows 7 - CYGWIN_NT-6.1 Reduce all Cygwin platform variants to just 'cygwin' so anything downstream can simply use 'cygwin' instead of the different full platform names.
* scons: Fix Cygwin platform names.Vinson Lee2011-02-231-1/+1
| | | | Fixes immediate Python exceptions with SCons on Cygwin.
* i915g: Use dump function in sw winsysJakob Bornecrantz2011-02-241-7/+2
|
* i915g: add some throttlingDaniel Vetter2011-02-211-0/+9
| | | | | | Intel classic drivers switched to this, too, so it must be good. Signed-off-by: Daniel Vetter <[email protected]>
* i915g: s/bool/boolean/ style-fixup in winsysDaniel Vetter2011-02-212-2/+2
| | | | Signed-off-by: Daniel Vetter <[email protected]>
* i915g: Fix warningJakob Bornecrantz2011-02-211-1/+0
|
* i915g: s/__func__/__FUNCTION__/Vinson Lee2011-02-201-1/+1
|
* i915g: kill remnants of mmapped batchbuffer supportDaniel Vetter2011-02-211-12/+0
| | | | | | We're using bo_subdata. Signed-off-by: Daniel Vetter <[email protected]>
* i915g: Add winsys/i915/sw to scons buildJakob Bornecrantz2011-02-211-0/+4
|
* i915g: Fix void ptr arithJakob Bornecrantz2011-02-211-1/+1
|
* r300g: fix invalid dereference in winsysMarek Olšák2011-02-191-1/+1
| | | | radeon_bo_unref may destroy the buffer, so call it after p_atomic_dec, not before.
* r300g: fix a race between CS and SET_TILING ioctlsMarek Olšák2011-02-163-6/+21
|
* r300g: offload the CS ioctl to another threadMarek Olšák2011-02-154-111/+220
| | | | | | | | | | This is a multi-threading optimization which hides the kernel overhead behind a thread. It improves performance in CPU-limited apps by 2-15%. Of course you must have at least 2 cores for it to make any difference. It can be disabled with: export RADEON_THREAD=0
* r300g: actually implement the is_buffer_busy hook the right wayMarek Olšák2011-02-151-3/+3
| | | | Ooops.
* r300g: handle interaction between UNSYNCHRONIZED and DONTBLOCK flags in bo_mapMarek Olšák2011-02-151-20/+16
| | | | | The VBO module uses both, but they are somewhat opposite to each other. In this case, we pick UNSYNCHRONIZED and ignore DONTBLOCK.
* r300g: fix a possible race condition when mapping a bufferMarek Olšák2011-02-152-23/+34
| | | | This is the last one I think.
* r300g: flush CS in bo_map even if we get USAGE_DONTBLOCKMarek Olšák2011-02-141-0/+1
| | | | | | | | | | Because an app may do something like this: while (!(ptr = bo_map(..., DONT_BLOCK))) { /* Do some other work. */ } And it would be looping endlessly if we didn't flush.
* r300g: implement pb_manager::is_buffer_busyMarek Olšák2011-02-141-22/+27
|
* r300g: fixup the handle_compare functionMarek Olšák2011-02-131-2/+2
| | | | Accidentally negated in 685c3262b945a7f0e9f1f3a9409a12fdda08c828.
* r300g: typecast void* to unsigned correctlyMarek Olšák2011-02-121-2/+4
|
* r300g: improve function radeon_bo_is_referenced_by_csMarek Olšák2011-02-125-18/+30
| | | | | This should prevent calling into radeon_get_reloc when there's only one context.
* r300g: remove unused function prototypes, update copyrightMarek Olšák2011-02-114-4/+56
|
* r300g: plug a memory leak in winsysMarek Olšák2011-02-111-0/+1
|
* r300g: remove unneeded code in winsysMarek Olšák2011-02-111-6/+0
| | | | We don't need the read/write flags.
* r300g: import the last bits of libdrm and cleanup the whole thingMarek Olšák2011-02-1110-762/+653
| | | | | | | | | | | | | | Based on Dave's branch. The majority of this commit is a cleanup, mainly renaming things. There wasn't much code to import, just ioctl calls. Also done: - implemented unsynchronized bo_map (important optimization!) - radeon_bo_is_referenced_by_cs is no longer a refcount hack - dropped the libdrm_radeon dependency I'm surprised that this has resulted in less code in the end.
* r600g: silence a few valgrind warningsBrian Paterni2011-02-083-4/+4
|
* r600g: Make some more things static.Henri Verbeet2011-02-031-1/+1
|
* svga/drm: Flushing preemptively on a 1/3 of the aperture.José Fonseca2011-02-031-1/+1
| | | | | | | | Exactly one half would be the ideal, but this is a soft limit, and one more byte over brings us to synchronous behavior. Flushing when the referred GMR exceeds one third of the aperture gives us statistically better performance.
* svga/drm: Update for pb_vtbl::map argument addition.José Fonseca2011-02-031-1/+2
|
* r600g: align the tiling modes with what the DDX and kernel expects.Dave Airlie2011-02-011-4/+3
| | | | | | | If we see a MACRO bit on r600g its 2D tiled, if don't see a MACRO bit and we do see a MICRO bit then its 1D tiled. Signed-off-by: Dave Airlie <[email protected]>
* r600g: start looking at evergreen tiling.Dave Airlie2011-02-011-17/+60
| | | | | | | | this just adds the ioctl interface and sets the tile type and array mode in the correct place. This seems to bring eg 1D tiling to the same level, and issues as on r600. No idea how to address 2D yet.
* scons: Gracefully handle pkg-config errors with libdrm_radeon.Vinson Lee2011-01-312-2/+12
| | | | Print warnings and continue build.
* r600g: fix eg OQ properly.Dave Airlie2011-01-312-5/+3
| | | | the context init is separate for these gpus.
* r600g: fix OQ on evergreenAlex Deucher2011-01-311-3/+6
| | | | | | 6xx/7xx have a max of 4 DBs, evergreen have a max of 8. Signed-off-by: Alex Deucher <[email protected]>
* r600g: fix occlusion query results.Dave Airlie2011-01-311-2/+8
| | | | | | | | | | | | | Like on some r5xx, there are multiple DB backends on the r600, we need to add up the query results from each of these to get the final correct value. So far I'm not 100% sure how to calculate the num_db, value setting it to 4 should be harmless enough until we do. This fixes occulsion_query piglit test on my rv740. Signed-off-by: Dave Airlie <[email protected]>
* r300g: print driver info if RADEON_DEBUG=infoMarek Olšák2011-01-273-35/+21
|
* r300g: add winsys flag CAN_AACOMPRESSMarek Olšák2011-01-273-9/+21
|
* r300g: rename flag squaretiling -> drm_2_1_0Marek Olšák2011-01-274-12/+11
|
* r600g: Implement timer queries.Mathias Fröhlich2011-01-253-13/+73
|
* r600g: Implement asyncronous query results.Mathias Fröhlich2011-01-251-4/+13
|
* r600g: Fix meaning of num_results for queries.Mathias Fröhlich2011-01-251-4/+4
|
* fix potential leak in r600_context_initTim Wiederhake2011-01-251-1/+2
|
* silences some valgrind warningsTim Wiederhake2011-01-251-1/+1
| | | | | ==5547== Conditional jump or move depends on uninitialised value(s) ==5547== at 0x8FE745D: r600_drm_winsys_create (r600_drm.c:86)
* r600g: Kill trailing whitespace.Henri Verbeet2011-01-183-41/+41
|
* r600g: Remove the redundant radeon_new() prototype.Henri Verbeet2011-01-151-2/+0
|
* r600g: move user fence into base radeon structureJerome Glisse2011-01-115-40/+42
| | | | | | | This avoid any issue when context is free and we still try to access fence through radeon structure. Signed-off-by: Jerome Glisse <[email protected]>