Keith Whitwell
0b01c70d59
Texture rectangle support for r100
2003-06-10 18:54:17 +00:00
Keith Whitwell
98840144b1
Revert bogus last commit
2003-06-09 23:12:33 +00:00
Keith Whitwell
1062b9930f
Don't activate blend fallbacks unless blending is enabled
2003-06-09 23:11:23 +00:00
Jose Fonseca
1a2bb43329
Verify 'drm_agp' is not NULL for all its wrappers - this causes no overhead
...
and must be done if in future a driver tries to talk to the AGP
directly from kernelspace instead of userspace, and the AGP is not
present.
2003-06-07 12:45:55 +00:00
Jose Fonseca
e3a149f080
Check that the AGPGART "drm_agp" symbol pointer is valid before
...
initializing the DRM device - this was causing a kernel oops when the
AGPGART module wasn't loaded.
2003-06-07 12:30:22 +00:00
Dave Airlie
f723f743c5
fix pitch compile error
2003-06-07 01:44:15 +00:00
Dave Airlie
8eaa2d2450
add page flipping support to the DRM, up version number to 1.3.0...
2003-06-05 23:31:40 +00:00
Jose Fonseca
8e7cd92f35
Added the Doxygen configuration file. Minor documentation fixes.
2003-06-03 23:50:23 +00:00
Jose Fonseca
6611a5fb7f
Split declarations/definitions in drm_scatter.h into drm_sg.h/drm_sg_tmp.h
...
respectively. Splited the work out of the ioctls and renamed (with the
_ioctl prefix). Added some more documentation. Did the same for
drm_sgpsupport.h.
2003-06-03 23:27:01 +00:00
Keith Whitwell
a709d4c97c
file i830_mem.c was initially added on branch i865-agp-0-1-branch.
2003-06-03 11:23:58 +00:00
Keith Whitwell
8946394758
file i830_compat.c was initially added on branch i865-agp-0-1-branch.
2003-05-30 12:07:45 +00:00
Leif Delgass
518db771de
Restore change to _DRM_VBLANK_SIGNAL from rev. 1.41, which was reverted
...
with the documentation merge.
2003-05-28 02:03:37 +00:00
Leif Delgass
ccf6d6a513
Restore DRM_*MEMORYBARRIER change reverted with documentation merge
2003-05-28 01:44:49 +00:00
Jose Fonseca
d2443b2186
Merged DRM documentation.
2003-05-27 00:37:33 +00:00
Leif Delgass
aeb4bc3f5b
Add support to r128 for MESA_ycbcr_texture (Ian Romanick, Leif Delgass)
2003-05-26 20:04:53 +00:00
David Dawes
c0efa1a777
DRM part of Radeon DRI suspend/resume support (Charl Botha).
2003-05-20 22:43:39 +00:00
David Dawes
2134577e31
Support for building DRM module on OpenBSD (Wilbern Cobb, Matthieu Herrb).
...
(resync with XFree86 trunk)
2003-05-20 22:42:24 +00:00
Michel Daenzer
b942999b59
do allow reading from read only mappings...
2003-05-17 00:37:34 +00:00
Michel Daenzer
e5d3c7f260
Support AGP bridges where the AGP aperture can't be accessed directly by
...
the CPU (David Mosberger, Benjamin Herrenschmidt, myself, Paul
Mackerras, Jeff Wiedemeier)
2003-05-16 23:41:27 +00:00
Michel Daenzer
1d5bf7a7de
fix warning on machines where sizeof(drm_addr_t) != 4 (Randy Dunlap)
2003-05-06 21:10:33 +00:00
Ian Romanick
285b1cdc39
Merged texmem-0-0-1
2003-04-30 01:51:00 +00:00
Leif Delgass
7e1a4bfab3
remove unused variables
2003-04-29 16:59:00 +00:00
Eric Anholt
87ed795ff3
Fix a typo: On takedown the mtrr operation is MEMRANGE_SET_REMOVE, not
...
_UPDATE.
2003-04-28 23:18:43 +00:00
Leif Delgass
5f1e2399eb
Restore Eric Anholt's DRM_*MEMORYBARRIER changes from rev 1.11
2003-04-28 17:49:26 +00:00
Leif Delgass
a57d320461
Only free original pagelist in addbufs_pci if one already exists (fixes
...
oops).
2003-04-28 16:20:31 +00:00
Alan Hourihane
6eb5364eb8
DRM_READ/WRITEMEMORYBARRIER was given an argument in the bsd tree, fix for
...
linux
2003-04-28 15:29:46 +00:00
Keith Whitwell
c584292e30
Put back __HAVE_KERNEL_CTX_SWITCH for David Miller's sparc drm driver
...
(which doesn't live in our cvs).
2003-04-27 09:53:58 +00:00
Eric Anholt
22b9b720d5
Use real endian conversion functions.
2003-04-27 00:43:14 +00:00
Eric Anholt
9828bd24c8
Fix formatting of hw.dri sysctl.
2003-04-26 23:55:30 +00:00
Eric Anholt
766a1da2e5
Remove the map argument from DRM_*MEMORYBARRIER. Not all of the uses of
...
DRM_*MEMORYBARRIER we had were related to an MMIO space. This means
arch-specific code on the BSDs, unfortunately. Also add
DRM_MEMORYBARRIER() and change the DRM_READMEMORYBARRIER()s that used
to be read/write barriers to it.
2003-04-26 23:32:00 +00:00
Eric Anholt
a172ee2a18
MFL: Don't install irq handler unless the driver has been initialized.
2003-04-26 23:04:22 +00:00
Eric Anholt
ce514e08aa
Add PCI DMA memory functions and make addbufs_pci and associated code use
...
it. To do this we need to save the bus address along with the virtual
address in the seglist. Also fix some error handling and a few bits of
whitespace.
2003-04-26 22:52:39 +00:00
Leif Delgass
f2a0c5438d
Ensure driver has been initialized (dev_private != NULL) before installing
...
irq handler in DRM(irq_install). Modify all drivers to ensure irq
handler is removed before cleanup and cleanup is called at takedown.
Remove unused buffer private struct fields in i810, i830. Check for
lock on init/cleanup in all drivers except i810/i830. The current DDX
for i810 and i830 doesn't hold the lock on kernel init (FIXME?).
2003-04-26 22:28:56 +00:00
Eric Anholt
a79adaab72
Missed files in the last commit: Remove memory debugging sysctl unless
...
MEMORY_DEBUG is set.
2003-04-26 22:21:37 +00:00
Eric Anholt
8621ae310b
Move the memory functions with debugging info to drm_memory_debug.h, and
...
remove a couple of dead functions.
2003-04-26 22:18:39 +00:00
Eric Anholt
79a0c5757e
Remove #if 0'ed code.
2003-04-26 21:57:43 +00:00
Keith Whitwell
f5844cea13
2.5.x sync patch from Linus Torvalds
2003-04-26 21:33:44 +00:00
Keith Whitwell
2c40a56393
move prototypes for gamma functions to gamma_drv.h
2003-04-26 21:22:08 +00:00
Keith Whitwell
2142b7840a
Remove #if 0'd code
2003-04-26 21:21:36 +00:00
Eric Anholt
e60eb69bc0
Replace the C atomic_cmpset_int compatibility function for -stable with the
...
real i386 atomic_cmpset_int from -current. FreeBSD-stable won't ever
have DRM support for non-i386.
2003-04-26 06:53:22 +00:00
Eric Anholt
acb5d6b273
Disable MTRRs on FreeBSD-stable. Without this, it hangs on boot in the MTRR
...
setting for AGP cards on SMP machines.
2003-04-26 06:39:55 +00:00
Leif Delgass
cb32dde3be
Fix potential oops and memory leaks when allocations fail in
...
addbufs_agp/pci. Add support for buffer private structs with PCI DMA
buffers. Also some debug format string fixes.
2003-04-25 19:42:47 +00:00
Eric Anholt
77ee73f8cd
Merge from FreeBSD-current.
2003-04-25 02:27:21 +00:00
David Dawes
c3092ead64
Targets for building dristat and drmstat.
2003-04-25 00:57:42 +00:00
Eric Anholt
58650c3a9d
Clean up the DRM_COPY_TO_USER()ing of DRM(infobufs), making it more
...
legible.
2003-04-25 00:02:14 +00:00
Eric Anholt
781828b26e
Clean up the style of the linux-compat code and use ioctl() directly rather
...
than reimplementing it.
2003-04-24 23:57:29 +00:00
Leif Delgass
16fda821eb
Pass dma handle from pci_alloc_consistent to the card for status page,
...
rather than using virt_to_bus() on the virtual address.
2003-04-24 23:18:33 +00:00
Eric Anholt
a147df879b
Remove more gamma DMA infrastructure. Most of this code was copied straight
...
from linux, so it could be added back if some driver needed it in the
future.
2003-04-24 19:09:55 +00:00
Leif Delgass
d6a82ff9c1
Remove unused dev->map_count. We always iterate the maplist with
...
list_for_each() and the count is not updated or used for stats.
2003-04-24 16:55:22 +00:00
Leif Delgass
2dc672a790
Minor cleanups for dri/drmstat test progs (Both still need targets for new
...
Makefile)
2003-04-24 16:47:32 +00:00