summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
AgeCommit message (Collapse)AuthorFilesLines
2011-03-02r300g: require DRM 2.3.0 (kernel 2.6.34)Marek Olšák1-7/+6
Running any older kernel is not recommended anyway.
2011-03-02r300g: do not use ioctl thread offloading on single-core machinesMarek Olšák3-1/+4
2011-03-01i915g: kill relocs accoutingDaniel Vetter2-6/+0
No one ever cared. libdrm does dynamic resizing of its reloc-table, anyway. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-03-01r600g: add NV_conditional_render support.Dave Airlie3-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 <airlied@redhat.com>
2011-03-01r600g: start using drm minor version to enable things.Dave Airlie2-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 <airlied@redhat.com>
2011-02-27i915g/winsys: buffer validation supportDaniel Vetter2-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 <daniel.vetter@ffwll.ch>
2011-02-27i915g: add raw batchbuffer dumping in drm winsysDaniel Vetter3-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 <daniel.vetter@ffwll.ch>
2011-02-26i915g: Use the same debug env vars in drm and sw winsysJakob Bornecrantz1-1/+1
2011-02-26i915g: Use unchecked writes in sw winsys batchbufferJakob Bornecrantz1-3/+3
2011-02-24scons: Reduce all Cygwin platform names to 'cygwin'.Vinson Lee1-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.
2011-02-23scons: Fix Cygwin platform names.Vinson Lee1-1/+1
Fixes immediate Python exceptions with SCons on Cygwin.
2011-02-24i915g: Use dump function in sw winsysJakob Bornecrantz1-7/+2
2011-02-21i915g: add some throttlingDaniel Vetter1-0/+9
Intel classic drivers switched to this, too, so it must be good. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-21i915g: s/bool/boolean/ style-fixup in winsysDaniel Vetter2-2/+2
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-21i915g: Fix warningJakob Bornecrantz1-1/+0
2011-02-20i915g: s/__func__/__FUNCTION__/Vinson Lee1-1/+1
2011-02-21i915g: kill remnants of mmapped batchbuffer supportDaniel Vetter1-12/+0
We're using bo_subdata. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2011-02-21i915g: Add winsys/i915/sw to scons buildJakob Bornecrantz1-0/+4
2011-02-21i915g: Fix void ptr arithJakob Bornecrantz1-1/+1
2011-02-19r300g: fix invalid dereference in winsysMarek Olšák1-1/+1
radeon_bo_unref may destroy the buffer, so call it after p_atomic_dec, not before.
2011-02-16r300g: fix a race between CS and SET_TILING ioctlsMarek Olšák3-6/+21
2011-02-15r300g: offload the CS ioctl to another threadMarek Olšák4-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
2011-02-15r300g: actually implement the is_buffer_busy hook the right wayMarek Olšák1-3/+3
Ooops.
2011-02-15r300g: handle interaction between UNSYNCHRONIZED and DONTBLOCK flags in bo_mapMarek Olšák1-20/+16
The VBO module uses both, but they are somewhat opposite to each other. In this case, we pick UNSYNCHRONIZED and ignore DONTBLOCK.
2011-02-15r300g: fix a possible race condition when mapping a bufferMarek Olšák2-23/+34
This is the last one I think.
2011-02-14r300g: flush CS in bo_map even if we get USAGE_DONTBLOCKMarek Olšák1-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.
2011-02-14r300g: implement pb_manager::is_buffer_busyMarek Olšák1-22/+27
2011-02-13r300g: fixup the handle_compare functionMarek Olšák1-2/+2
Accidentally negated in 685c3262b945a7f0e9f1f3a9409a12fdda08c828.
2011-02-12r300g: typecast void* to unsigned correctlyMarek Olšák1-2/+4
2011-02-12r300g: improve function radeon_bo_is_referenced_by_csMarek Olšák5-18/+30
This should prevent calling into radeon_get_reloc when there's only one context.
2011-02-11r300g: remove unused function prototypes, update copyrightMarek Olšák4-4/+56
2011-02-11r300g: plug a memory leak in winsysMarek Olšák1-0/+1
2011-02-11r300g: remove unneeded code in winsysMarek Olšák1-6/+0
We don't need the read/write flags.
2011-02-11r300g: import the last bits of libdrm and cleanup the whole thingMarek Olšák10-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.
2011-02-08r600g: silence a few valgrind warningsBrian Paterni3-4/+4
2011-02-03r600g: Make some more things static.Henri Verbeet1-1/+1
2011-02-03svga/drm: Flushing preemptively on a 1/3 of the aperture.José Fonseca1-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.
2011-02-03svga/drm: Update for pb_vtbl::map argument addition.José Fonseca1-1/+2
2011-02-01r600g: align the tiling modes with what the DDX and kernel expects.Dave Airlie1-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 <airlied@redhat.com>
2011-02-01r600g: start looking at evergreen tiling.Dave Airlie1-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.
2011-01-31scons: Gracefully handle pkg-config errors with libdrm_radeon.Vinson Lee2-2/+12
Print warnings and continue build.
2011-01-31r600g: fix eg OQ properly.Dave Airlie2-5/+3
the context init is separate for these gpus.
2011-01-31r600g: fix OQ on evergreenAlex Deucher1-3/+6
6xx/7xx have a max of 4 DBs, evergreen have a max of 8. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-31r600g: fix occlusion query results.Dave Airlie1-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 <airlied@redhat.com>
2011-01-27r300g: print driver info if RADEON_DEBUG=infoMarek Olšák3-35/+21
2011-01-27r300g: add winsys flag CAN_AACOMPRESSMarek Olšák3-9/+21
2011-01-27r300g: rename flag squaretiling -> drm_2_1_0Marek Olšák4-12/+11
2011-01-25r600g: Implement timer queries.Mathias Fröhlich3-13/+73
2011-01-25r600g: Implement asyncronous query results.Mathias Fröhlich1-4/+13
2011-01-25r600g: Fix meaning of num_results for queries.Mathias Fröhlich1-4/+4