Eric Anholt
4d5341340f
Fix distcheck for optional nouveau stuff.
2009-02-21 10:01:40 -08:00
Ben Skeggs
7e5c512104
libdrm: make libdrm_nouveau conditional, disabled by default
...
libdrm isn't supposed to ship APIs not present in a released kernel.
2009-02-15 21:51:46 +10:00
Ben Skeggs
225e7e274f
nouveau: install libdrm_nouveau with libdrm
2009-02-04 14:32:31 +10:00
Jesse Barnes
badc63464c
libdrm: add autoconf check for clock_gettime
...
Should be more portable this way.
2009-01-07 11:47:52 -08:00
Jesse Barnes
f4f76a6894
libdrm: add timeout handling to drmWaitVBlank
...
In some cases, vblank interrupts may be disabled or otherwise broken.
The kernel has a 3s timeout builtin to handle these cases, but the X
server's SIGALM for cursor handling may interrupt vblank wait ioctls,
causing libdrm to restart the ioctl, making the kernel's timeout
useless.
This change tracks time across ioctl restarts and returns EBUSY to the
caller if the expected vblank sequence doesn't occur within 1s of the
first call.
Fixes fdo bz #18041 , which is caused by a drmWaitVBlank hanging due to
the corresponding pipe getting disabled (thus preventing further events
from coming in).
2009-01-07 10:18:08 -08:00
Jesse Barnes
731cd5526e
libdrm: add mode setting files
...
Add mode setting files to libdrm, including xf86drmMode.* and the new
drm_mode.h header. Also add a couple of tests to sanity check the
kernel interfaces and update code to support them.
2008-12-17 10:11:37 -08:00
Jesse Barnes
9583c099b4
Revert "Merge branch 'modesetting-gem'"
...
This reverts commit 6656db1055
.
We really just want the libdrm and ioctl bits, not all the driver
stuff.
2008-12-10 15:50:22 -08:00
Jesse Barnes
6656db1055
Merge branch 'modesetting-gem'
2008-12-09 10:23:43 -08:00
Dave Airlie
c99566fb81
libdrm: bump to 2.4 for lib version
...
we already have a 2.3.x version out there
2008-12-08 14:05:32 +10:00
Jerome Glisse
7617d1fef7
radeon: radeon util library
2008-10-27 19:27:15 +01:00
Dave Airlie
4c8aeb6fc7
link libdrm_intel properly
...
libdrm_intel needs symbols from libdrm, so link against it.
(cherry picked from commit d9c2f65dd8
)
Conflicts:
libdrm/Makefile.am
2008-10-17 06:40:38 +10:00
Dave Airlie
9dda3a8f63
libdrm: don't depend or link to libdrm_intel
2008-10-17 06:39:58 +10:00
Eric Anholt
6df7b0719f
intel: Protect bufmgr objects with a pthread mutex.
...
We want to be able to use the bufmgr from multiple threads for GL, and thus
we need to protect the internal structures.
The pthread-stubs package is used so that programs not linked against
pthreads get weak symbols to stubs and don't eat most of the cost.
2008-10-17 06:38:57 +10:00
Julien Cristau
d9c2f65dd8
link libdrm_intel properly
...
libdrm_intel needs symbols from libdrm, so link against it.
2008-10-13 16:39:33 -07:00
Dave Airlie
c6109df93b
libdrm: don't depend or link to libdrm_intel
2008-10-13 07:16:33 +10:00
Eric Anholt
3169d9639b
intel: Protect bufmgr objects with a pthread mutex.
...
We want to be able to use the bufmgr from multiple threads for GL, and thus
we need to protect the internal structures.
The pthread-stubs package is used so that programs not linked against
pthreads get weak symbols to stubs and don't eat most of the cost.
2008-10-09 12:57:09 -07:00
Dave Airlie
972f657265
Merge remote branch 'origin/master' into modesetting-gem
...
Conflicts:
libdrm/Makefile.am
libdrm/dri_bufmgr.h
linux-core/drm_irq.c
linux-core/drm_sysfs.c
linux-core/drm_ttm.c
shared-core/i915_dma.c
shared-core/i915_irq.c
shared-core/nouveau_drv.h
shared-core/radeon_cp.c
2008-09-30 14:13:49 +10:00
Eric Anholt
b54d15d8fd
Add missing \ to libdrm_la_SOURCES
...
Reported by jcristau.
2008-09-10 20:05:02 -07:00
Eric Anholt
738e36acbc
Move intel libdrm stuff to libdrm_intel.so
...
dri_bufmgr.h is replaced by intel_bufmgr.h, and several functions are renamed,
though the structures and many functions remain dri_bufmgr_* and dri_bo_*
2008-09-10 14:07:18 -07:00
Jesse Barnes
2f03ba4aad
Merge branch 'master' into modesetting-gem
...
Conflicts:
libdrm/Makefile.am
libdrm/xf86drm.h
shared-core/i915_dma.c
shared-core/i915_irq.c
2008-08-13 10:08:02 -07:00
Eric Anholt
f7a9940715
Drop TTM interfaces from the userland library.
2008-08-08 15:57:47 -07:00
Jesse Barnes
a1d9600724
Merge commit 'origin/drm-gem' into modesetting-gem
...
Passed the compile test; it's ready to ship.
Conflicts:
libdrm/Makefile.am
linux-core/Makefile.kernel
linux-core/drmP.h
linux-core/drm_memrange.c
linux-core/drm_stub.c
shared-core/drm.h
shared-core/i915_dma.c
shared-core/i915_drv.h
shared-core/i915_irq.c
2008-06-10 17:31:54 -07:00
Eric Anholt
8a3b510405
Fix libdrm to actually include the new code instead of just building it.
2008-06-03 14:44:53 -07:00
Eric Anholt
c4857429c7
Fix and hook up bufmgr code to the build.
2008-06-03 14:44:53 -07:00
Dave Airlie
5bffbd6e27
initial userspace interface to get modes
2007-04-05 13:34:50 +10:00
Dave Airlie
79038751ff
libdrm: add support for server side functionality in libdrm
...
This adds APIs to allow the X server to use libdrm from the system
rather than its own in-built copy.
2006-11-08 15:08:09 +11:00
Thomas Hellstrom
e47a4fda2e
Memory manager init and takedown.
2006-08-30 13:04:08 +02:00
Adam Jackson
22e41ef083
Formatting cleanup, dead code removal. Remove N() namespacing macro,
...
useless. Remove SIGIO handling functions as they're server-only and
properly belong in libdri.
2006-02-20 23:09:00 +00:00
Adam Jackson
7d735a8c9f
Bump package and DSO numbers to 2.0 to reflect 32/64 ABI change
2005-11-30 18:44:54 +00:00
Adam Jackson
d74376779f
Remove the remaining references to Xlib. libdrm is totally independent now.
2005-10-20 17:53:02 +00:00
Eric Anholt
7d5130d8fb
Include appropriate CFLAGS to find X headers, needed to build libdrm.
2005-08-25 02:59:21 +00:00
Adam Jackson
017174085f
Fix silly install issue by moving the header install rules for shared-core
...
into shared-core/Makefile.am. Bump to 1.0.3.
2005-08-20 03:32:09 +00:00
Adam Jackson
1abd165f5b
Add r300_reg.h. Bump to 1.0.2.
2005-08-19 20:14:10 +00:00
Adam Jackson
5a5478de7a
distcheck fixes
2005-07-13 00:13:12 +00:00
Adam Jackson
07d23f9c60
autoconfiscate libdrm
2005-07-10 22:42:42 +00:00