Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | i915g/winsys: buffer validation support | Daniel Vetter | 2011-02-27 | 2 | -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 winsys | Daniel Vetter | 2011-02-27 | 3 | -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 winsys | Jakob Bornecrantz | 2011-02-26 | 1 | -1/+1 |
| | |||||
* | i915g: Use unchecked writes in sw winsys batchbuffer | Jakob Bornecrantz | 2011-02-26 | 1 | -3/+3 |
| | |||||
* | scons: Reduce all Cygwin platform names to 'cygwin'. | Vinson Lee | 2011-02-24 | 1 | -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 Lee | 2011-02-23 | 1 | -1/+1 |
| | | | | Fixes immediate Python exceptions with SCons on Cygwin. | ||||
* | i915g: Use dump function in sw winsys | Jakob Bornecrantz | 2011-02-24 | 1 | -7/+2 |
| | |||||
* | i915g: add some throttling | Daniel Vetter | 2011-02-21 | 1 | -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 winsys | Daniel Vetter | 2011-02-21 | 2 | -2/+2 |
| | | | | Signed-off-by: Daniel Vetter <[email protected]> | ||||
* | i915g: Fix warning | Jakob Bornecrantz | 2011-02-21 | 1 | -1/+0 |
| | |||||
* | i915g: s/__func__/__FUNCTION__/ | Vinson Lee | 2011-02-20 | 1 | -1/+1 |
| | |||||
* | i915g: kill remnants of mmapped batchbuffer support | Daniel Vetter | 2011-02-21 | 1 | -12/+0 |
| | | | | | | We're using bo_subdata. Signed-off-by: Daniel Vetter <[email protected]> | ||||
* | i915g: Add winsys/i915/sw to scons build | Jakob Bornecrantz | 2011-02-21 | 1 | -0/+4 |
| | |||||
* | i915g: Fix void ptr arith | Jakob Bornecrantz | 2011-02-21 | 1 | -1/+1 |
| | |||||
* | r300g: fix invalid dereference in winsys | Marek Olšák | 2011-02-19 | 1 | -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 ioctls | Marek Olšák | 2011-02-16 | 3 | -6/+21 |
| | |||||
* | r300g: offload the CS ioctl to another thread | Marek Olšák | 2011-02-15 | 4 | -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 way | Marek Olšák | 2011-02-15 | 1 | -3/+3 |
| | | | | Ooops. | ||||
* | r300g: handle interaction between UNSYNCHRONIZED and DONTBLOCK flags in bo_map | Marek Olšák | 2011-02-15 | 1 | -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 buffer | Marek Olšák | 2011-02-15 | 2 | -23/+34 |
| | | | | This is the last one I think. | ||||
* | r300g: flush CS in bo_map even if we get USAGE_DONTBLOCK | Marek Olšák | 2011-02-14 | 1 | -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_busy | Marek Olšák | 2011-02-14 | 1 | -22/+27 |
| | |||||
* | r300g: fixup the handle_compare function | Marek Olšák | 2011-02-13 | 1 | -2/+2 |
| | | | | Accidentally negated in 685c3262b945a7f0e9f1f3a9409a12fdda08c828. | ||||
* | r300g: typecast void* to unsigned correctly | Marek Olšák | 2011-02-12 | 1 | -2/+4 |
| | |||||
* | r300g: improve function radeon_bo_is_referenced_by_cs | Marek Olšák | 2011-02-12 | 5 | -18/+30 |
| | | | | | This should prevent calling into radeon_get_reloc when there's only one context. | ||||
* | r300g: remove unused function prototypes, update copyright | Marek Olšák | 2011-02-11 | 4 | -4/+56 |
| | |||||
* | r300g: plug a memory leak in winsys | Marek Olšák | 2011-02-11 | 1 | -0/+1 |
| | |||||
* | r300g: remove unneeded code in winsys | Marek Olšák | 2011-02-11 | 1 | -6/+0 |
| | | | | We don't need the read/write flags. | ||||
* | r300g: import the last bits of libdrm and cleanup the whole thing | Marek Olšák | 2011-02-11 | 10 | -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 warnings | Brian Paterni | 2011-02-08 | 3 | -4/+4 |
| | |||||
* | r600g: Make some more things static. | Henri Verbeet | 2011-02-03 | 1 | -1/+1 |
| | |||||
* | svga/drm: Flushing preemptively on a 1/3 of the aperture. | José Fonseca | 2011-02-03 | 1 | -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é Fonseca | 2011-02-03 | 1 | -1/+2 |
| | |||||
* | r600g: align the tiling modes with what the DDX and kernel expects. | Dave Airlie | 2011-02-01 | 1 | -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 Airlie | 2011-02-01 | 1 | -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 Lee | 2011-01-31 | 2 | -2/+12 |
| | | | | Print warnings and continue build. | ||||
* | r600g: fix eg OQ properly. | Dave Airlie | 2011-01-31 | 2 | -5/+3 |
| | | | | the context init is separate for these gpus. | ||||
* | r600g: fix OQ on evergreen | Alex Deucher | 2011-01-31 | 1 | -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 Airlie | 2011-01-31 | 1 | -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=info | Marek Olšák | 2011-01-27 | 3 | -35/+21 |
| | |||||
* | r300g: add winsys flag CAN_AACOMPRESS | Marek Olšák | 2011-01-27 | 3 | -9/+21 |
| | |||||
* | r300g: rename flag squaretiling -> drm_2_1_0 | Marek Olšák | 2011-01-27 | 4 | -12/+11 |
| | |||||
* | r600g: Implement timer queries. | Mathias Fröhlich | 2011-01-25 | 3 | -13/+73 |
| | |||||
* | r600g: Implement asyncronous query results. | Mathias Fröhlich | 2011-01-25 | 1 | -4/+13 |
| | |||||
* | r600g: Fix meaning of num_results for queries. | Mathias Fröhlich | 2011-01-25 | 1 | -4/+4 |
| | |||||
* | fix potential leak in r600_context_init | Tim Wiederhake | 2011-01-25 | 1 | -1/+2 |
| | |||||
* | silences some valgrind warnings | Tim Wiederhake | 2011-01-25 | 1 | -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 Verbeet | 2011-01-18 | 3 | -41/+41 |
| | |||||
* | r600g: Remove the redundant radeon_new() prototype. | Henri Verbeet | 2011-01-15 | 1 | -2/+0 |
| | |||||
* | r600g: move user fence into base radeon structure | Jerome Glisse | 2011-01-11 | 5 | -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]> |