summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-05-27Encapsulate the drm event structure we read from the fdkms-pageflipdri2-swapbuffersKristian Høgsberg4-45/+108
2009-05-15Update to new kernel page flip interfaceKristian Høgsberg5-25/+167
And add modetest support for page flipping as a sanity check. [Note that the modetest flip isn't as pretty as glsync's orange smoothie.]
2009-05-15Merge branch 'master' into kms-pageflipJesse Barnes10-5/+112
2009-05-14libdrm/intel: Make get_pipe_from_crtc_id per-bufmgr. Return -1 on failure.libdrm-2.4.11Keith Packard4-9/+32
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 Worth3-0/+35
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 Packard1-1/+1
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 Packard4-1/+42
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 Coopersmith1-0/+6
2009-05-09Delete extra libdrm_lists.h line after libdrm_la_SOURCES in libdrm/Makefile.amAlan Coopersmith1-1/+0
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-05-07nouveau: backlight compat fixStuart Bennett1-1/+1
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 Tholen1-1/+1
2009-05-01libdrm/intel: assert that clients are using bo refcounting correctlyKeith Packard1-0/+3
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-05-01libdrm: add KMS page flip interfaceJesse Barnes4-3/+35
Sits on top of KMS page flipping ioctl.
2009-04-27intel: NULL fake bo block when freeing in evict_allJesse Barnes1-0/+2
Fixes assertion failures on later use of the object.
2009-04-22libdrm/mode: align subpixel resultsDave Airlie1-1/+2
2009-04-17nouveau: write posting got lost somewhere, bring it backBen Skeggs1-0/+1
2009-04-15nouveau: store bo handle in public struct in bo_ref_handleBen Skeggs1-1/+2
2009-04-10Bump version to 2.4.9libdrm-2.4.9Jesse Barnes1-2/+2
Who needs 2.4.8 anyway?
2009-04-10Bump version to 2.4.8libdrm-2.4.8Jesse Barnes1-1/+1
2009-04-10Revert "libdrm: speed up connector & mode fetching"Jesse Barnes1-32/+7
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.7libdrm-2.4.7Kristian Høgsberg1-1/+1
2009-04-09test: Avoid recursive dependency in makefileKristian Høgsberg1-1/+1
2009-04-09test: Makefile.am grammar naziKristian Høgsberg1-4/+6
2009-04-07drm: fix test makefileDave Airlie1-0/+2
no idea if this is correct but it works so meh
2009-04-06Skip tests that require rootlibdrm-2.4.6Kristian Høgsberg2-0/+10
This lets us do make distcheck as non-root.
2009-04-06XFAIL auth and lock test casesKristian Høgsberg2-12/+16
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øgsberg8-45/+122
2009-03-31Move drm_vblank_cleanup() after lastclose.Robert Noland2-4/+4
This may prevent a possible panic on shutdown.
2009-03-30libdrm: speed up connector & mode fetchingJesse Barnes1-7/+32
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 Bennett1-1/+27
2009-03-30libdrm: bump version to 2.4.6Jesse Barnes1-1/+1
This version includes GTT unmap support for the Intel bufmgr.
2009-03-26libdrm/intel: support GTT maps correctlyJesse Barnes2-16/+42
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 Bennett1-0/+1
2009-03-25nouveau: add linux compat defines for PCI config access, use them for nvidia ↵Stuart Bennett2-18/+34
IGPs
2009-03-25nouveau: use PFB_CSTATUS naming from ddx (reg introduced with nv10)Stuart Bennett3-9/+7
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 Skeggs1-1/+1
2009-03-20libdrm/nouveau: ask the kernel for vram/gart aperture sizesBen Skeggs2-0/+19
2009-03-20libdrm/nouveau: remove unneccesary null ptr checksBen Skeggs1-4/+2
2009-03-20libdrm/nouveau: incr refcount on ref fence before decr on old fenceBen Skeggs1-11/+5
2009-03-20libdrm/nouveau: unref fences when deleting boMaarten Maathuis1-0/+4
- This was causing a significant memory leak.
2009-03-18libdrm/nouveau: implement bo_handle_get for !mm_enabledBen Skeggs1-11/+12
bo_handle_ref on !mm_enabled treats handle as an offset, make bo_handle_get do the same rather than failing.
2009-03-16libdrm_nouveau: The handle that is passed to mmap needs to be drm_handle_tRobert Noland1-1/+1
drm_handle_t is defined to be a u32 on linux and a u64 on everything else. This addresses an issue on FreeBSD amd64 where the map offsets may be greater than 32bits. When the handle is cast to 32bit, mmap cannot match the requested map and causes X to crash. This should be a NOOP on linux since drm_handle_t is always 32bit. Signed-off-by: Robert Noland <rnoland@2hip.net>
2009-03-16FreeBSD: Set up the nouveau build infrastructureRobert Noland38-1/+573
disabled by default until the rest of the patches are in.
2009-03-16FreeBSD: Add support for matching solely on vedor id.Robert Noland1-2/+6
This also adds that ability to set device name from VPD, but that doesn't seem to be working...
2009-03-16FreeBSD: Improve the debug output of drm_mmap().Robert Noland1-1/+6
2009-03-16FreeBSD: Add list_for_each_prev() to our bank of compat functions.Robert Noland1-0/+4
2009-03-16FreeBSD: Don't set the PZERO flag to mtx_sleep.Robert Noland3-8/+3
We also don't support anything old enough to need tsleep.
2009-03-16FreeBSD: use flsl() instead of ffsl().Robert Noland1-1/+1
I noticed that we were computing drm_order differently than linux.
2009-03-16FreeBSD: Minor code cleanup.Robert Noland1-1/+1
2009-03-16FreeBSD: Increase MAX_PCI_RESOURCERobert Noland1-1/+1
We can have more than 3 BARs to access.