summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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)
2009-05-14libdrm/intel: Make get_pipe_from_crtc_id per-bufmgr. Return -1 on failure.Keith Packard
The convention is that all APIs are per-bufmgr, so make this one the same. Then, have it return -1 on failure so that the application can know what's going on and do something sensible. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-05-14Add new drm_intel_get_pipe_from_crtc_id function.Carl Worth
This wraps the new DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID ioctl, allowing applications to discover the pipe number corresponding to a given CRTC ID. This is necessary for doing pipe-specific operations such as waiting for vblank on a given CRTC.
2009-05-12Bump to version 2.4.10 to mark addition of drm_intel_bo_disable_reuseKeith Packard
New API, new version. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2009-05-12libdrm/intel: add drm_intel_bo_disable_reuse apiKeith Packard
Scanout buffers need to be freed through the kernel as it holds a reference to them; exposing this API allows applications allocating scanout buffers to flag them as not reusable. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2009-05-10Use C99 versions of __FUNCTION__ & __volatile__ when not building with gccAlan Coopersmith
2009-05-09Delete extra libdrm_lists.h line after libdrm_la_SOURCES in libdrm/Makefile.amAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-07nouveau: backlight compat fixStuart Bennett
Avoid failure to build on old kernels with CONFIG_BACKLIGHT_CLASS_DEVICE set
2009-05-07nouveau: fix ppc for swab changes in Linux 2.6.29Danny Tholen
2009-05-01libdrm/intel: assert that clients are using bo refcounting correctlyKeith Packard
Add assertions to drm_intel_gem_bo_reference, drm_intel_gem_bo_reference_locked and drm_intel_gem_bo_unreference_locked that the object has not been freed (refcount > 0). Mistakes in refcounting lead to attempts to insert a bo into a free list more than once which causes application failure as empty free lists are dereferenced as buffer objects. Signed-off-by: Keith Packard <keithp@keithp.com>
2009-04-27intel: NULL fake bo block when freeing in evict_allJesse Barnes
Fixes assertion failures on later use of the object.
2009-04-22libdrm/mode: align subpixel resultsDave Airlie
2009-04-17nouveau: write posting got lost somewhere, bring it backBen Skeggs
2009-04-15nouveau: store bo handle in public struct in bo_ref_handleBen Skeggs
2009-04-10Bump version to 2.4.9Jesse Barnes
Who needs 2.4.8 anyway?
2009-04-10Bump version to 2.4.8Jesse Barnes
2009-04-10Revert "libdrm: speed up connector & mode fetching"Jesse Barnes
This reverts commit cd5c66c659168cbe2e3229ebf8be79f764ed0ee1. It broke too many kernel assumptions about the double ioctl (connector status, mode fetching, etc.)
2009-04-09Bump version to 2.4.7Kristian Høgsberg
2009-04-09test: Avoid recursive dependency in makefileKristian Høgsberg
2009-04-09test: Makefile.am grammar naziKristian Høgsberg
2009-04-07drm: fix test makefileDave Airlie
no idea if this is correct but it works so meh
2009-04-06Skip tests that require rootKristian Høgsberg
This lets us do make distcheck as non-root.
2009-04-06XFAIL auth and lock test casesKristian Høgsberg
They're writing to the read end of a pipe and failing.
2009-04-06Use libudev in test case to only run gem tests for intel devices.Kristian Høgsberg
2009-03-31Move drm_vblank_cleanup() after lastclose.Robert Noland
This may prevent a possible panic on shutdown.
2009-03-30libdrm: speed up connector & mode fetchingJesse Barnes
This patch speeds up drmModeGetConnector by pre-allocating mode & property info space before calling into the kernel.  In many cases this pre-allocation will be sufficient to hold the returned values (it's easy enough to tweak if the common case becomes larger), which means we don't have to make the second call, which saves a lot of time. Acked-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-03-30nouveau: nForce 1/2 IGP memory sanity check from DDXStuart Bennett
2009-03-30libdrm: bump version to 2.4.6Jesse Barnes
This version includes GTT unmap support for the Intel bufmgr.
2009-03-26libdrm/intel: support GTT maps correctlyJesse Barnes
libdrm has some support for GTT mapping already, but there are bugs with it (no surprise since it hasn't been used much). In fixing 20803, I found that sharing bo_gem->virtual was a bad idea, since a previously mapped object might not end up getting GTT mapped, leading to corruption. So this patch splits the fields according to use, taking care to unmap both at free time (but preserving the map caching). There's still a risk we might run out of mappings (there's a sysctl tunable for max number of mappings per process, defaulted to 64k or so it looks like) but at least GTT maps will work with these changes (and some others for fixing PAT breakage in the kernel). Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-03-25nouveau: plug drm fifo ioremap leak (#14941)Stuart Bennett
2009-03-25nouveau: add linux compat defines for PCI config access, use them for nvidia ↵Stuart Bennett
IGPs
2009-03-25nouveau: use PFB_CSTATUS naming from ddx (reg introduced with nv10)Stuart Bennett
NV04 had a PFB_FIFO_DATA at the same address, which we don't use, so remove it to reduce confusion
2009-03-25libdrm/nouveau: fix typo in nouveau_device_close()Ben Skeggs
2009-03-20libdrm/nouveau: ask the kernel for vram/gart aperture sizesBen Skeggs