Commit Graph

2584 Commits (604f02ff619d87d1372bcb7969c826d981fefc60)

Author SHA1 Message Date
Eric Anholt 97961e2c65 BSD vblank framework. 2002-09-26 07:45:07 +00:00
Eric Anholt 770d045d25 Fix one warning. 2002-09-26 07:21:05 +00:00
Michel Daenzer f40674ea9f change RADEON_PARAM_IRQ_ACTIVE to RADEON_PARAM_IRQ_NR 2002-09-25 19:48:51 +00:00
Michel Daenzer 55acd0d5a6 common ioctl to wait for vertical blank IRQs 2002-09-25 17:18:19 +00:00
Keith Whitwell f1c8fe9557 merged r200-0-2-branch to trunk 2002-09-23 17:26:43 +00:00
Michel Daenzer cfa1a918b6 make sure we never oops because the hardware lock pointer in the sigdata
structure is out of date
2002-09-21 23:18:54 +00:00
David Dawes c4318a5c64 - Fix various bugs in the DRI support for the i830 and i845G (Keith
Whitwell).
- Major rework of the 2D i830/i845G support, including:
- Improve VESA mode selection, and fix refresh rate selection.
- Don't duplicate functions provided in the vbe modules.
- Don't duplicate functions provided in the vgahw module.
- Rewrite memory allocation.
- Rewrite initialisation and save/restore state handling.
- Decouple the i810 support from i830 and later.
- Remove various unnecessary hacks and workarounds.
- Fix an 845G problem with the ring buffer not in pre-allocated memory.
- Fix screen blanking.
- Fix some HW cursor glitches, and turn HW cursor off at VT switch and
    exit.
- Don't attempt to use the i830's function 1 entity.
- Fix problems with option handling. (David Dawes).
- Add mode VBE-aware mode handling functions to the vbe module (David
    Dawes).
2002-09-11 00:57:49 +00:00
Eric Anholt 9797f0fd17 Remove some extra symlinking for kernel module building that hasn't been
needed since 2000.
2002-08-30 23:49:25 +00:00
Eric Anholt b248c02c4f Remove this one too: it'll be used from the linux version (if ever) 2002-08-30 21:34:03 +00:00
Eric Anholt d51ec6b972 Remove compat functions for FreeBSD for drivers which weren't available in
X4.2
2002-08-30 21:06:21 +00:00
Keith Whitwell be88ab60df file radeon_irq.c was initially added on branch r200-0-2-branch. 2002-08-30 07:55:25 +00:00
Keith Whitwell 4fcde1efc1 standardize use of __FUNCTION__ (Linus) 2002-08-29 07:34:49 +00:00
Keith Whitwell 22c1ca1fd5 Turn boxes off. 2002-08-28 08:47:39 +00:00
Eric Anholt 8a8cfd38df Remove i8x0 files from the BSD side. These were not actually ported, and
when they do get ported most of them won't live in these directories.
2002-08-28 04:33:02 +00:00
Keith Whitwell fa560b4847 file radeon_mem.c was initially added on branch r200-0-2-branch. 2002-08-27 12:16:32 +00:00
Eric Anholt e4830ba553 Remove drm_linux.h, it's no longer used. 2002-08-27 03:56:10 +00:00
Eric Anholt 5e81d590d5 Include non-radeon modules in the build. 2002-08-27 01:22:55 +00:00
Keith Whitwell 48cc350e21 merged r200-0-1-branch 2002-08-26 22:16:18 +00:00
Leif Delgass a697941d4c Don't (re)define vmalloc_to_page for kernel >= 2.4.19, as it has been
backported from 2.5.x. Also fix a couple of incorrect
    LINUX_VERSION_CODE tests and fix header dependency for r128, radeon
    when building without AGP.
2002-08-22 19:35:31 +00:00
Leif Delgass 2febcafd66 SetPageLocked only defined in 2.5.x (x=?), use LockPage for 2.4.x (x>=9).
Also apply build fixes from i810_dma.c to i830_dma.c
2002-08-22 18:43:39 +00:00
Jose Fonseca 18d3fac990 Change the linux kernel version condition in the i810 driver (according to
Alan Cox)
2002-08-21 14:09:28 +00:00
Eric Anholt 77c35c043a Remove drm_linux.h, move the two useful defines into drm_drv.h (the only
place they're used). Use fd locking on -current. Actually copy in data
    from userspace to kernel in the linux-compat ioctl path. Make sure
    ioctl sizes are as expected in the ioctl handler functions.
2002-08-21 07:14:21 +00:00
Leif Delgass 8eedac5833 add missing include (for udelay), remove unused counter. 2002-08-21 01:14:43 +00:00
Michel Daenzer 3165128fc4 TRUE and FALSE don't seem to be defined everywhere... 2002-08-21 00:09:32 +00:00
Keith Whitwell 33d57137da zero-cliprect case patch from Jacek 2002-08-12 07:26:00 +00:00
Michel Daenzer d0ac4e5ad0 test scratch register writeback before using it 2002-08-11 15:56:44 +00:00
Eric Anholt d2f2b42f1d Try to open the /dev/dri/cardX device once, then only if it fails check the
device number and recreate it if necessary. Fixes xf86drm.c to allow
    linux binaries to be used for emulation on FreeBSD.
2002-08-08 21:23:46 +00:00
Rik Faith 977b420d5d Updates from Rusty Russell to:
1) Remove redundant header inclusion
2) Silence bitop on non-long argument warnings (change int to long)
3) Move to ISO C (gcc 2.6) initializers (accepted by older gccs also) All
    of these are syntax changes that should not impact functionality.
2002-08-06 18:00:57 +00:00
Michel Daenzer 881a9b214d fix off-by-one error for right bottom corner in radeon_emit_clip_rect()
(Jacek Rosik)
2002-07-18 23:17:13 +00:00
Tim Smith 8fa8db126a Workaround for Radeon lockups on fast machines 2002-07-17 08:30:36 +00:00
Michel Daenzer 9a3a3143ce bump DRM minor and check it before using the GETPARAM ioctl to obtain
scratch register values
2002-07-14 20:26:52 +00:00
Michel Daenzer fd86ac9561 Don't read scratch registers directly, obtain the values via the GET_PARAM
ioctl. The DRM reads them from memory addresses the chip writes to on
    updates. Fall back to reading the registers directly with an old DRM.
(Tim Smith, cleanups by myself)
2002-07-11 20:31:12 +00:00
Eric Anholt 2ec9c15d8c Increase the linux-compatibility max ioctl. 2002-07-09 02:40:38 +00:00
Alan Hourihane 9ceabc585a remove obsolete files 2002-07-06 09:43:12 +00:00
Alan Hourihane 59c07e447b remove files missed by merge 2002-07-05 08:58:15 +00:00
Alan Hourihane 74ef13fd00 merged bsd-3-0-0-branch 2002-07-05 08:31:11 +00:00
Keith Whitwell 24025ca5f7 Fix some more pageflipping issues -- existing code was doing MMIO writes
while ring was active. There is still an MMIO read in there, but I
    haven't seen any lockups that could be attributed to it.
2002-07-04 12:03:15 +00:00
Keith Whitwell ca81e1334e Revert SET_SCISSORS change. 2002-07-04 11:55:44 +00:00
Tim Smith cc45cc0609 Fix lockup on faster machines when drawing in multiple clip rectangles
(e.g. when part of a 3D window is obscured by another window)
2002-07-02 21:34:25 +00:00
Keith Whitwell bb91bc0879 Set pfCurrentPage on cleanup_pageflip 2002-06-27 17:56:39 +00:00
Alan Hourihane 8aecdbea76 gamma_alloc -> DRM(alloc) 2002-06-25 12:13:20 +00:00
Max Lingua f626cf76e6 file s3v.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua 4cdcbd6c2f file s3v_dma.c was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua 4073aa694c file s3v_drm.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua 5f8b0028a2 file s3v_drv.c was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua 688082d656 file s3v_drv.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua 978136f2f4 file s3v_regs.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Eric Anholt 663c9a152a file radeon_state.c was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt 3fe7fb316c file radeon.h was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt f8794f23f6 file radeon_drm.h was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00