aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-08-22radeon: add support for busy/domain check interface.Pauli Nieminen
airlied: modified the interface to drop busy return value, just return it normally, also fixed int->uint32_t for domain Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-19nouveau: fix a thinko in copyless pushbuf ioctlBen Skeggs
No idea why G80 doesn't hit this, but, this fixes at least one NV40 card.
2009-08-18libdrm_radeon: Optimize copy of table to cs buffer with specialized call.Pauli Nieminen
Using this call in OUT_BATCH_TABLE reduces radeonEmitState cpu usage from 9% to 5% and emit_vpu goes from 7% to 1.5%. I did use calgrind to profile gears for cpu hotspots with r500 card. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18libdrm_radeon: Fix loops so that compiler can optimize them.Pauli Nieminen
GCC did war about optimization not possible because possible forever loop. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18libdrm/radeon: Update head of linked list not to point freed memory.Pauli Nieminen
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2009-08-18nouveau: support for copy-less pushbuf ioctlBen Skeggs
2009-08-18nouveau: for the moment, assert if we exceed some reloc limitsBen Skeggs
Nasty, but nicer than silently not writing into the pushbuf
2009-08-17radeon: fix bo wait at map time.Dave Airlie
2009-08-16Filter radeon pkgconfig file as do intel and nouveauChristoph Brill
2009-08-15radeon: fix GTT writing space checkDave Airlie
Noticed by vehemens on irc. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-08-05link libdrm_intel with -lrt for new use of clock_gettime().Anssi Hannula
Signed-off-by: Eric Anholt <eric@anholt.net>
2009-08-01libdrm_radeon: add tiling supportDave Airlie
2009-08-01radeon: don't map/unmap explicitly.Dave Airlie
This caches the mapping and just use mapping as a sync point
2009-07-28nouveau: don't overwrite user-specified bo size needlesslyBen Skeggs
2009-07-28nouveau: user buffers need to be mappableBen Skeggs
2009-07-28nouveau: drm api 0.0.15, update object header, remove fake bo supportBen Skeggs
2009-07-27libdrm/nouveau: unmap before ufree means nvbo->sysmem != NULL, which ↵Maarten Maathuis
inbalances cpu_prep/cpu_finish - The bo was mapped with sysmem == NULL, so this means cpu prep is called. - The bo was unmapped with sysmem != NULL, so this means cpu finish is not called. - This can lead to a non-zero "cpu writers" count in ttm_bo.
2009-07-15Add RADEON_INIT_R600_CP tooAlex Deucher
this rounds out the r6xx/r7xx stuff in radeon_drm.h
2009-07-15Add R600_SCRATCH_REG_OFFSET to radeon_drm.hAlex Deucher
This lets us libdrm from master for r6xx/r7xx 3d
2009-07-15Bump to version 2.4.12 for release.Eric Anholt
2009-07-09intel: Free buffers in the BO cache that haven't been reused in a while.Eric Anholt
The goal of the BO cache is to keep buffers on hand for fast continuous use, as in every frame of a game or every batchbuffer of the X Server. Keeping older buffers on hand not only doesn't serve this purpose, it may hurt performance by resulting in disk cache getting kicked out, or even driving the system to swap. Bug #20766.
2009-07-10configure: move AC_USE_SYSTEM_EXTENSIONS up higherDave Airlie
this was giving me a warning on automake 1.11
2009-07-09nouveau: fix pin for buffers created with bo_wrapBen Skeggs
2009-07-06s/AC_USE_SYSTEM_MACROS/AC_USE_SYSTEM_EXTENSIONS/Ian Romanick
Not sure what I was thinking.
2009-07-06libdrm: Make chown check for return valuePauli Nieminen
If call was interrupted by signal we have to make call again. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2009-07-06libdrm: Set _XOPEN_SOURCE and _GNU_SOURCEIan Romanick
Several POSIX extensions are used in the libdrm code (e.g., mknod and ffs). Set _XOPEN_SOURCE and _GNU_SOURCE to something reasonable to ensure that prototypes for these functions are available. This is done in configure.ac using AC_USE_SYSTEM_MACROS. This requires autoconf 2.60 or later. Eventually the code should check for the existance of these defines and do something reasonable if they are not available. Inspired by a patch by Pauli Nieminen and suggestions from Julien Cristau. Thanks. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-07-06intel: Fix up math errors when allocating very large BOs.Eric Anholt
The logbase2 would overflow and wrap the size around to 0, making the code allocate a 4kb object instead. By simplifying the code to just walk the 14-entry bucket array comparing sizes instead of indexing on ffs(1 << logbase2(size)), we avoid silly math errors and have code of approximately the same speed. Many thanks to Simon Farnsworth for debugging and providing a working patch. Bug #27365.
2009-07-06intel: fix compiler warning about returning a void value.Edward O'Callaghan
bug #21999
2009-07-06libdrm: Fix pci id numbers to unsigned so code won't mix signed/unsigned ↵Pauli Nieminen
integers.
2009-07-06strcasecmp is in strings.h.Ian Romanick
Based on patch by Pauli Nieminen. Thanks.
2009-07-06libdrm: Remove typedef for non-existing enumPauli Nieminen
2009-07-06radeon: move cs space checking code to libdrm_radeon.Dave Airlie
This ports a lot of the space checking code into a the common library, so that the DDX and mesa can use it.
2009-07-03radeon: fix cs buffer realloc paddingJerome Glisse
We always realloc at least 0x1000 dwords (page on most system) when growing the cs buffer this is to avoid having to realloc at each cs_begin.
2009-07-03radeon: fix realloc of packets.Dave Airlie
This should use ndw not cdw, using cdw leads to realloc alignment going wrong
2009-07-02radeon: add buffer naming functionDave Airlie
2009-06-30radeon: add support for write followed by read relocs.Dave Airlie
the DDX does this and used to handle it internally
2009-06-23remove some old ttm bitsDave Airlie
2009-06-22drm: Strip old ttm.Thomas Hellstrom
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-06-22modetest: use gtt unmap for objectJesse Barnes
Match gtt map/unmap for correctness.
2009-06-17libdrm/radeon: add initial libdrm_radeonDave Airlie
requires --enable-radeon-experimental-api for now
2009-06-05nouveau: 0.0.14 + extend bo interface to support subrange mappingBen Skeggs
Normal map() should operate as before, and map_range()/map_flush() should give correct results but lacking any performance difference from map(). Nothing exiting being done here yet, but the interface is a good start.
2009-06-04nouveau: fix bo mapping issueBen Skeggs
2009-06-03Fix build on kernels < 2.6.26Pekka Paalanen
The commit 651e3dc6dd58a79c90db7513ee2fb28360a4560d, "drm: Fix compilation on 2.6.30" broke all builds on kernels before 2.6.26. Variadic functions cannot be inlined. The variadic inline function is replaced with a variadic macro. Also, the function dev_name() added by that same commit is never used, so it is removed. Signed-off-by: Pekka Paalanen <pq@iki.fi>
2009-06-03nouveau: fill in bo->tiled field for referenced buffersBen Skeggs
Fixes the dri1 gallium driver if the front buffer happens to be non-linear.
2009-06-02nv50: magic fix for "3d busted without the binary driver first" issueBen Skeggs
No idea what this reg does.. NVIDIA put 0x802 into it on some chips, the criteria aren't too clear on when they do that however. Hopefully 0x800 will work everywhere...
2009-05-28drm: Fix compilation on 2.6.30Michael Buesch
This fixes DRM compilation of nouveau.ko on kernel 2.6.30. Signed-off-by: Michael Buesch <mb@bu3sch.de>
2009-05-26nouveau: bump for 0.0.13Ben Skeggs
2009-05-22nouveau: backlight support for ppc laptopsDanny Tholen
Patch allows the backlight to be manipulated under gnome on apple powerpc based NV30 machines. It works fine on my powerbook, and should also work for older NV17/NV18 machines. Note that older powerpc specific tools (pbbuttonsd) have some problems with this implementation (because the device is not yet there at the start time of the daemon, and the code makes incorrect assumptions about the max brightness values). However, IMHO these things can and should be addressed in the daemon. Some style/warning fixes applied by Stuart Bennett <stuart@freedesktop.org>
2009-05-19intel: quiet a warning.Eric Anholt
2009-05-19intel: Only do BO caching up to 64MB objects.Eric Anholt
This avoids making objects significantly bigger than they would be otherwise, which would result in some failing at binding to the GTT. Found from firefox hanging on: http://upload.wikimedia.org/wikipedia/commons/b/b7/Singapore_port_panorama.jpg due to a software fallback trying to do a GTT-mapped copy between two 73MB BOs that were instead each 128MB, and failing because both couldn't fit simultaneously. The cost here is that we get no opportunity to cache these objects and avoid the mapping. But since the objects are a significant percentage of the aperture size, each mapped access is likely having to fault and rebind the object most of the time anyway. Bug #20152 (2/3)