summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
Commit message (Collapse)AuthorAgeFilesLines
* r600g: fix logic error in 028987c80362eddd39176628486a456b076f0427Alex Deucher2011-03-141-1/+1
| | | | | | Spotted by Henri on IRC. Signed-off-by: Alex Deucher <[email protected]>
* r600g: emit SURFACE_BASE_UPDATE packet on rv6xxAlex Deucher2011-03-142-2/+25
| | | | | | | | This packet is required when updating the DB, CB, or STRMOUT base addresses on rv6xx for the surface sync logic to work correctly. Signed-off-by: Alex Deucher <[email protected]>
* gallium: remove flags from the flush functionMarek Olšák2011-03-112-2/+2
| | | | | | | | | | The drivers have been changed so that they behave as if all of the flags were set. This is already implicit in most hardware drivers and required for multiple contexts. Some state trackers were also abusing the PIPE_FLUSH_RENDER_CACHE flag to decide whether flush_frontbuffer should be called. New flag ST_FLUSH_FRONT has been added to st_api.h as a replacement.
* r600: don't close fd on failed loadDave Airlie2011-03-101-3/+0
| | | | | | | This fd gets passed in from outside, closing it causes the X.org server to crap out when the driver doesn't identify the chipset. Signed-off-by: Dave Airlie <[email protected]>
* scons: Fix immediate Python exceptions with SCons on SunOS.Vinson Lee2011-03-082-2/+2
| | | | The build still fails.
* r300g: decide whether a flush should be asynchronous when calling itMarek Olšák2011-03-083-16/+17
| | | | Thread offloading is not sometimes desirable, e.g. when mapping a buffer.
* r300g: require DRM 2.3.0 (kernel 2.6.34)Marek Olšák2011-03-021-7/+6
| | | | Running any older kernel is not recommended anyway.
* r300g: do not use ioctl thread offloading on single-core machinesMarek Olšák2011-03-023-1/+4
|
* i915g: kill relocs accoutingDaniel Vetter2011-03-012-6/+0
| | | | | | | No one ever cared. libdrm does dynamic resizing of its reloc-table, anyway. Signed-off-by: Daniel Vetter <[email protected]>
* r600g: add NV_conditional_render support.Dave Airlie2011-03-013-26/+80
| | | | | | | | This is reliant on a drm patch that I posted on the list + a version bump. These will appear in drm-next today. Signed-off-by: Dave Airlie <[email protected]>
* r600g: start using drm minor version to enable things.Dave Airlie2011-03-012-6/+61
| | | | | | | | | | If the drm minor version is > 9 (i.e. whats in drm-next), we enable s3tc + texture tiling by default now. this changes R600_FORCE_TILING to R600_TILING which can be set to false to disable tiling on working drm. Signed-off-by: Dave Airlie <[email protected]>
* 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]>