platform/upstream/libdrm.git
17 years agoi915: Bump minor for swap scheduling ioctl and secondary vblank support.
Michel Dänzer [Mon, 18 Sep 2006 10:15:38 +0000 (12:15 +0200)]
i915: Bump minor for swap scheduling ioctl and secondary vblank support.

17 years agoi915_vblank_swap: Add support for DRM_VBLANK_NEXTONMISS.
Michel Dänzer [Wed, 13 Sep 2006 06:59:35 +0000 (08:59 +0200)]
i915_vblank_swap: Add support for DRM_VBLANK_NEXTONMISS.

17 years agoOnly return EBUSY after we've established we need to schedule a new swap.
Michel Dänzer [Fri, 1 Sep 2006 09:48:07 +0000 (11:48 +0200)]
Only return EBUSY after we've established we need to schedule a new swap.

17 years agoCore vsync: Don't clobber target sequence number when scheduling signal.
Michel Dänzer [Fri, 1 Sep 2006 09:35:31 +0000 (11:35 +0200)]
Core vsync: Don't clobber target sequence number when scheduling signal.

It looks like this would have caused signals to always get sent on the next
vertical blank, regardless of the sequence number.

17 years agoCore vsync: Add flag DRM_VBLANK_NEXTONMISS.
Michel Dänzer [Fri, 1 Sep 2006 09:27:14 +0000 (11:27 +0200)]
Core vsync: Add flag DRM_VBLANK_NEXTONMISS.

When this flag is set and the target sequence is missed, wait for the next
vertical blank instead of returning immediately.

17 years agoFix 'sequence has passed' condition in i915_vblank_swap().
Michel Dänzer [Fri, 1 Sep 2006 09:24:38 +0000 (11:24 +0200)]
Fix 'sequence has passed' condition in i915_vblank_swap().

17 years agoAdd SAREA fileds for determining which pipe to sync window buffer swaps to.
Michel Dänzer [Thu, 31 Aug 2006 16:33:04 +0000 (18:33 +0200)]
Add SAREA fileds for determining which pipe to sync window buffer swaps to.

17 years agoAdd definition of DRM_VBLANK_SECONDARY.
Michel Dänzer [Thu, 31 Aug 2006 16:32:08 +0000 (18:32 +0200)]
Add definition of DRM_VBLANK_SECONDARY.

17 years agoMake handling of dev_priv->vblank_pipe more robust.
Michel Dänzer [Thu, 31 Aug 2006 16:30:55 +0000 (18:30 +0200)]
Make handling of dev_priv->vblank_pipe more robust.

Initialize it to default value if it hasn't been set by the X server yet.

In i915_vblank_pipe_set(), only update dev_priv->vblank_pipe and call
i915_enable_interrupt() if the argument passed from userspace is valid to avoid
corrupting dev_priv->vblank_pipe on invalid arguments.

17 years agoDRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead of pipe number.
Michel Dänzer [Wed, 30 Aug 2006 17:33:28 +0000 (19:33 +0200)]
DRM_I915_VBLANK_SWAP ioctl: Take drm_vblank_seq_type_t instead of pipe number.

Handle relative as well as absolute target sequence numbers.

Return error if target sequence has already passed, so userspace can deal with
this situation as it sees fit.

On success, return the sequence number of the vertical blank when the buffer
swap is expected to take place.

Also add DRM_IOCTL_I915_VBLANK_SWAP definition for userspace code that may want
to use ioctl() instead of drmCommandWriteRead().

17 years agoChange first valid DRM drawable ID to be 1 instead of 0.
Michel Dänzer [Wed, 30 Aug 2006 17:24:04 +0000 (19:24 +0200)]
Change first valid DRM drawable ID to be 1 instead of 0.

This makes it easier for userspace to know when it needs to allocate an ID.

Also free drawable information memory when it's no longer needed.

17 years agoAdd copyright notice.
Michel Dänzer [Mon, 28 Aug 2006 16:19:58 +0000 (18:19 +0200)]
Add copyright notice.

17 years agoi915: Add ioctl for scheduling buffer swaps at vertical blanks.
Michel Dänzer [Fri, 25 Aug 2006 17:01:05 +0000 (19:01 +0200)]
i915: Add ioctl for scheduling buffer swaps at vertical blanks.

This uses the core facility to schedule a driver callback that will be called
ASAP after the given vertical blank interrupt with the HW lock held.

17 years agoLocking and memory management fixes.
Michel Dänzer [Fri, 25 Aug 2006 16:55:55 +0000 (18:55 +0200)]
Locking and memory management fixes.

17 years agoDrop tasklet locked driver callback when uninstalling IRQ.
Michel Dänzer [Fri, 25 Aug 2006 16:55:06 +0000 (18:55 +0200)]
Drop tasklet locked driver callback when uninstalling IRQ.

17 years agoExport drm_get_drawable_info symbol from core.
Michel Dänzer [Wed, 23 Aug 2006 17:00:26 +0000 (19:00 +0200)]
Export drm_get_drawable_info symbol from core.

17 years agoHook up DRM_IOCTL_UPDATE_DRAW ioctl.
Michel Dänzer [Wed, 23 Aug 2006 14:05:47 +0000 (16:05 +0200)]
Hook up DRM_IOCTL_UPDATE_DRAW ioctl.

17 years agoOnly reallocate cliprect memory if the number of cliprects changes.
Michel Dänzer [Wed, 23 Aug 2006 14:04:41 +0000 (16:04 +0200)]
Only reallocate cliprect memory if the number of cliprects changes.

Also improve diagnostic output.

17 years agoAdd support for tracking drawable information to core
Michel Dänzer [Tue, 22 Aug 2006 14:40:07 +0000 (16:40 +0200)]
Add support for tracking drawable information to core

Actually make the existing ioctls for adding and removing drawables do
something useful, and add another ioctl for the X server to update drawable
information. The only kind of drawable information tracked so far is cliprects.

17 years agoAdd support for interrupt triggered driver callback with lock held to DRM core.
Michel Dänzer [Wed, 16 Aug 2006 13:47:22 +0000 (15:47 +0200)]
Add support for interrupt triggered driver callback with lock held to DRM core.

17 years agoAdd support for secondary vertical blank interrupt to i915 driver.
Michel Dänzer [Fri, 11 Aug 2006 16:06:46 +0000 (18:06 +0200)]
Add support for secondary vertical blank interrupt to i915 driver.

When the vertical blank interrupt is enabled for both pipes, pipe A is
considered primary and pipe B secondary. When it's only enabled for one pipe,
it's always considered primary for backwards compatibility.

17 years agoAdd support for secondary vertical blank interrupt to DRM core.
Michel Dänzer [Fri, 11 Aug 2006 15:57:59 +0000 (17:57 +0200)]
Add support for secondary vertical blank interrupt to DRM core.

17 years agobug 5942: add stubs for drm_mtrr_add/del for non-MTRR configured linux
Felix Kuhling [Thu, 21 Sep 2006 17:46:54 +0000 (03:46 +1000)]
bug 5942: add stubs for drm_mtrr_add/del for non-MTRR configured linux

17 years agobug 7092 : add pci ids for mach64 in Dell poweredge 4200
Anish Mistry [Thu, 21 Sep 2006 17:43:34 +0000 (03:43 +1000)]
bug 7092 : add pci ids for mach64 in Dell poweredge 4200

17 years agodo a TCL state flush before accessing VAP_CNTL to prevent lockups on r200 when enabli...
Roland Scheidegger [Wed, 20 Sep 2006 17:44:57 +0000 (19:44 +0200)]
do a TCL state flush before accessing VAP_CNTL to prevent lockups on r200 when enabling/disabling vertex programs

17 years agodrm: put domain number back to 0, domain support is seriously fubar..
Dave Airlie [Mon, 18 Sep 2006 11:22:12 +0000 (21:22 +1000)]
drm: put domain number back to 0, domain support is seriously fubar..

17 years agoUse register writes instead of BITBLT_MULTI packets for buffer swap blits.
Michel Dänzer [Fri, 15 Sep 2006 14:37:47 +0000 (16:37 +0200)]
Use register writes instead of BITBLT_MULTI packets for buffer swap blits.

This takes up two more ring buffer entries per rectangle blitted but makes sure
the blit is performed top to bottom, reducing the likelyhood of tearing.

17 years agodrm: use radeon specific names for radeon flags
Dave Airlie [Mon, 11 Sep 2006 20:13:14 +0000 (06:13 +1000)]
drm: use radeon specific names for radeon flags

17 years agoUse the DRM_INIT_WAITQUEUE argument (needed on Linux) to avoid a warning.
Eric Anholt [Thu, 7 Sep 2006 06:26:50 +0000 (23:26 -0700)]
Use the DRM_INIT_WAITQUEUE argument (needed on Linux) to avoid a warning.

17 years agoPut the PCI device/vendor id in the drm_device_t.
Eric Anholt [Thu, 7 Sep 2006 06:25:14 +0000 (23:25 -0700)]
Put the PCI device/vendor id in the drm_device_t.

This helps us unbreak FreeBSD DRM from the 965 changes.

17 years agoAdd a typedef for u64.
Eric Anholt [Thu, 7 Sep 2006 06:08:29 +0000 (23:08 -0700)]
Add a typedef for u64.

17 years agodrm: lots of small cleanups and whitespace issues fixed up
Dave Airlie [Sat, 19 Aug 2006 07:59:18 +0000 (17:59 +1000)]
drm: lots of small cleanups and whitespace issues fixed up

remove a mach64 warning, align a lot of things from linux kernel

17 years agoadd static function, and remove bad attributions
Dave Airlie [Sat, 19 Aug 2006 06:56:03 +0000 (16:56 +1000)]
add static function, and remove bad attributions

17 years agofix const pointer warnings with file_operations
Dave Airlie [Sat, 19 Aug 2006 06:55:30 +0000 (16:55 +1000)]
fix const pointer warnings with file_operations

17 years agoremove local copies of pci domain/bus/slot/num
Dave Airlie [Sat, 19 Aug 2006 06:55:00 +0000 (16:55 +1000)]
remove local copies of pci domain/bus/slot/num

17 years agoremove some DRM_ARRAY_SIZE from linux core code
Dave Airlie [Sat, 19 Aug 2006 06:43:16 +0000 (16:43 +1000)]
remove some DRM_ARRAY_SIZE from linux core code

17 years agofixup some of the comments in drm_context.c
Dave Airlie [Sat, 19 Aug 2006 06:36:26 +0000 (16:36 +1000)]
fixup some of the comments in drm_context.c

17 years agodrm: i810_dma.c: fix pointer arithmetic for 64-bit target
Dave Airlie [Sat, 19 Aug 2006 06:31:34 +0000 (16:31 +1000)]
drm: i810_dma.c: fix pointer arithmetic for 64-bit target

First warning result from open-coded PTR_ERR,
the rest is caused by code like this:

*(u32 *) ((u32) buf_priv->kernel_virtual + used)

I've also fixed a missing PTR_ERR in i830_dma.c

From: Denis Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
17 years agoBug #7595: Avoid u32 overflows in radeon_check_and_fixup_offset().
Michel Dänzer [Sat, 26 Aug 2006 10:21:11 +0000 (12:21 +0200)]
Bug #7595: Avoid u32 overflows in radeon_check_and_fixup_offset().

The overflows could cause valid offsets to get rejected under some
circumstances, e.g. when the framebuffer resides at the very end of the card's
address space.

17 years agoFix previous commit: Only fall back to hashed handles
Thomas Hellstrom [Wed, 23 Aug 2006 11:49:13 +0000 (13:49 +0200)]
Fix previous commit: Only fall back to hashed handles
when there is a duplicate handle error. Not for other errors.

17 years agoAllow multiple addMaps with the same 32-bit map offset.
Thomas Hellstrom [Wed, 23 Aug 2006 09:31:10 +0000 (11:31 +0200)]
Allow multiple addMaps with the same 32-bit map offset.
(Reported by Dave Airlie)

17 years agoFix hashtab implementation leaking illegal error codes to user space.
Thomas Hellstrom [Wed, 23 Aug 2006 09:21:33 +0000 (11:21 +0200)]
Fix hashtab implementation leaking illegal error codes to user space.
(Reported by Dave Airlie)

17 years agoRemove hash tables on DRM exit.
Thomas Hellstrom [Wed, 16 Aug 2006 14:36:56 +0000 (16:36 +0200)]
Remove hash tables on DRM exit.

17 years agoAvoid kernel oops in some error paths calling drm_lastclose().
Thomas Hellstrom [Mon, 14 Aug 2006 15:11:14 +0000 (17:11 +0200)]
Avoid kernel oops in some error paths calling drm_lastclose().

17 years agoremove all TRUE instances as well
Dave Airlie [Mon, 14 Aug 2006 01:52:34 +0000 (11:52 +1000)]
remove all TRUE instances as well

17 years agoremove all TRUE/FALSE no need for this in the drm, use 0 or 1
Dave Airlie [Mon, 14 Aug 2006 01:49:52 +0000 (11:49 +1000)]
remove all TRUE/FALSE no need for this in the drm, use 0 or 1

17 years agoi965 code and Linux coding style < 0
Dave Airlie [Thu, 10 Aug 2006 04:38:50 +0000 (14:38 +1000)]
i965 code and Linux coding style < 0

smack my whitespace up.

17 years agocleanup some whitespace issue and move compat code to compat header
Dave Airlie [Thu, 10 Aug 2006 04:32:18 +0000 (14:32 +1000)]
cleanup some whitespace issue and move compat code to compat header

17 years agoclean up script to create an lk drm directory
Dave Airlie [Thu, 10 Aug 2006 04:31:56 +0000 (14:31 +1000)]
clean up script to create an lk drm directory

17 years agodrm: ati_pcigart cleanup
Dave Airlie [Thu, 10 Aug 2006 04:31:22 +0000 (14:31 +1000)]
drm: ati_pcigart cleanup

use NULL instead of 0, cleanup some whitespace

17 years agoAdd support for Intel i965G chipsets.
Alan Hourihane [Tue, 8 Aug 2006 22:05:54 +0000 (15:05 -0700)]
Add support for Intel i965G chipsets.

This is a patch prepared by Guangdeng Liao based off of Tungsten Graphics's
final code drop.

17 years agodrm: whitespace cleanup in new files
Dave Airlie [Mon, 7 Aug 2006 11:34:40 +0000 (21:34 +1000)]
drm: whitespace cleanup in new files

17 years agodrm: remove extra whitespace from drm_mm.c
Dave Airlie [Mon, 7 Aug 2006 11:00:13 +0000 (21:00 +1000)]
drm: remove extra whitespace from drm_mm.c

17 years agodrm: fixup whitespace and style for Linux kernel import
Dave Airlie [Mon, 7 Aug 2006 10:56:38 +0000 (20:56 +1000)]
drm: fixup whitespace and style for Linux kernel import

18 years agoRevert "Make sure busmastering gets disabled on module unload."
Michel Dänzer [Wed, 26 Jul 2006 16:21:32 +0000 (18:21 +0200)]
Revert "Make sure busmastering gets disabled on module unload."

This reverts af7b89d7246efbed7d05c38fcaa6a13c4b89db90 commit. It causes an oops
on X server shutdown here, and for the reporter of bug #7629 as well.

18 years agoBug #7629: Fix for CHIP_IS_AGP getting 'restored' with non-AGP cards
Michel Dänzer [Wed, 26 Jul 2006 16:14:20 +0000 (18:14 +0200)]
Bug #7629: Fix for CHIP_IS_AGP getting 'restored' with non-AGP cards

Commit 2a47f6bfecea5dabcbf79d5e1aaf271f50070b89 caused the CHIP_IS_AGP flag to
get 'restored' with PCI(e) cards. I can't think of a way to fix this without
introducing a (otherwise redundant) CHIP_IS_PCI flag.

18 years agoremove incorrect exit marking on cleanup pci as this is called from other paths
Dave Airlie [Mon, 24 Jul 2006 01:09:41 +0000 (11:09 +1000)]
remove incorrect exit marking on cleanup pci as this is called from other paths

18 years agoswitch drm to use Linux mutexes instead of semaphore.
Dave Airlie [Mon, 24 Jul 2006 00:51:27 +0000 (10:51 +1000)]
switch drm to use Linux mutexes instead of semaphore.

I hope the fallback compat code works if not shout at me.

18 years agoDelete the pre-core DRM code with extreme prejudice.
Adam Jackson [Wed, 19 Jul 2006 20:19:25 +0000 (16:19 -0400)]
Delete the pre-core DRM code with extreme prejudice.

18 years agoMake sure busmastering gets disabled on module unload.
Adam Jackson [Wed, 19 Jul 2006 19:35:31 +0000 (15:35 -0400)]
Make sure busmastering gets disabled on module unload.

18 years agoUse RADEON_RB3D_DSTCACHE_CTLSTAT instead of RADEON_RB2D_DSTCACHE_CTLSTAT.
Michel Dänzer [Wed, 19 Jul 2006 17:18:32 +0000 (19:18 +0200)]
Use RADEON_RB3D_DSTCACHE_CTLSTAT instead of RADEON_RB2D_DSTCACHE_CTLSTAT.

The latter seems to be a read-only mirror of the former.

18 years agoMake sure CHIP_IS_AGP flag is set when not overriding to PCI mode.
Michel Dänzer [Wed, 19 Jul 2006 17:16:26 +0000 (19:16 +0200)]
Make sure CHIP_IS_AGP flag is set when not overriding to PCI mode.

This allows using AGP after overriding to PCI mode in a previous session
without reloading the DRM.

18 years agoWhen writeback isn't used, actually disable it in the hardware.
Michel Dänzer [Wed, 19 Jul 2006 17:13:00 +0000 (19:13 +0200)]
When writeback isn't used, actually disable it in the hardware.

Not doing this might waste bus bandwidth or even cause memory corruption or
system crashes on systems that check bus transfers. No such incident has been
reported though.

18 years agoImplement RADEON_PARAM_SCRATCH_OFFSET getparam.
Michel Dänzer [Wed, 19 Jul 2006 17:07:06 +0000 (19:07 +0200)]
Implement RADEON_PARAM_SCRATCH_OFFSET getparam.

When this succeeds, userspace can read the scratch register contents from the
mapped writeback page directly.

18 years agoSome debug output when the getparam ioctl is called with an unknown parameter.
Michel Dänzer [Wed, 19 Jul 2006 17:01:33 +0000 (19:01 +0200)]
Some debug output when the getparam ioctl is called with an unknown parameter.

18 years ago.cvsignore -> .gitignore
Michel Dänzer [Wed, 19 Jul 2006 16:31:43 +0000 (18:31 +0200)]
.cvsignore -> .gitignore

Sort the merged file, remove the redundant explicit .ko lines and add
some generated symlinks.

18 years agoKeep hashed user tokens, with the following changes:
Thomas Hellstrom [Tue, 11 Jul 2006 14:37:37 +0000 (14:37 +0000)]
Keep hashed user tokens, with the following changes:
32-bit physical device addresses are mapped directly to user-tokens. No
    duplicate maps are allowed, and the addresses are assumed to be outside
    of the range 0x10000000 through 0x30000000. The user-token is identical
    to the 32-bit physical start-address of the map.
64-bit physical device addressed are mapped to user-tokens in the range
0x10000000 to 0x30000000 with page-size increments. The user_token should
    not be interpreted as an address.
Other map types, like upcoming TTM maps are mapped to user-tokens in the
    range
0x10000000 to 0x30000000 with page-size increments. The user_token should
    not be interpreted as an address.
This keeps compatibility with buggy drivers, while still implementing a
    hashed map lookup. The SiS and via device driver major bumps are
    reverted.

18 years agoChange drm Map handles to be arbitrary 32-bit hash tokens in the range
Thomas Hellstrom [Mon, 10 Jul 2006 13:00:21 +0000 (13:00 +0000)]
Change drm Map handles to be arbitrary 32-bit hash tokens in the range
    0x10000000 to 0x90000000 in PAGE_SIZE increments.
Implement hashed map lookups.
This potentially breaks both 2D and 3D drivers. If so, the corresponding
2D and 3D driver should be fixed, and it's corresponding drm device driver
    should have its major bumped as soon as possible.
Bump sis and via drm device driver majors.
The SiS and Unichrome 3D drivers are fixed in Mesa CVS HEAD and
    mesa_6_4_branch.

18 years agoSiS 315 Awareness.
Thomas Hellstrom [Wed, 5 Jul 2006 15:52:35 +0000 (15:52 +0000)]
SiS 315 Awareness.

18 years agoAdd missing semaphore release.
Thomas Hellstrom [Wed, 5 Jul 2006 14:39:22 +0000 (14:39 +0000)]
Add missing semaphore release.

18 years agoDisable building static libraries. Bump to 2.0.2 for header updates. libdrm-2_0_2
Adam Jackson [Tue, 27 Jun 2006 21:04:50 +0000 (21:04 +0000)]
Disable building static libraries. Bump to 2.0.2 for header updates.

18 years agoFix compilation problem on 2.6.9 kernels (bug #6211)
Alan Hourihane [Fri, 23 Jun 2006 16:29:39 +0000 (16:29 +0000)]
Fix compilation problem on 2.6.9 kernels (bug #6211)

18 years agoRemove spurious debug messages from i915 vblank config paths
Keith Packard [Thu, 22 Jun 2006 21:34:44 +0000 (21:34 +0000)]
Remove spurious debug messages from i915 vblank config paths

18 years agoi915: Save vblank pipe configuration to restore on resume
Keith Packard [Wed, 21 Jun 2006 00:15:10 +0000 (00:15 +0000)]
i915: Save vblank pipe configuration to restore on resume

18 years agoAdd i915 ioctls to configure pipes for vblank interrupt.
Keith Packard [Mon, 19 Jun 2006 20:15:53 +0000 (20:15 +0000)]
Add i915 ioctls to configure pipes for vblank interrupt.
i915 vblanks can be generated from either pipe a or b, however a disabled
    pipe generates no interrupts. This change allows the X server to select
    which pipe generates vblank interrupts.

18 years agoFix buffer cleanup on close. Move memory manager reset from final_context
Thomas Hellstrom [Mon, 19 Jun 2006 09:12:50 +0000 (09:12 +0000)]
Fix buffer cleanup on close. Move memory manager reset from final_context
    to lastclose.

18 years agovia: Bump version number and date.
Thomas Hellstrom [Mon, 19 Jun 2006 09:01:31 +0000 (09:01 +0000)]
via: Bump version number and date.

18 years agovia: Return the requested size instead of the correct size of the allocated
Thomas Hellstrom [Fri, 16 Jun 2006 15:20:20 +0000 (15:20 +0000)]
via: Return the requested size instead of the correct size of the allocated
    regions. The 2D driver and XvMC lib has problems when the returned size
    is not the same as the allocated size.

18 years agovia:
Thomas Hellstrom [Thu, 15 Jun 2006 18:37:05 +0000 (18:37 +0000)]
via:
-Remove out of memory error message.
-Move sman cleanup from final_context to lastclose.
-Add the P4VM800PRO (?) PCI ID.

18 years agos/list_entry/drm_hash_entry/ for "drm_hash_item"s.
Thomas Hellstrom [Tue, 6 Jun 2006 17:52:03 +0000 (17:52 +0000)]
s/list_entry/drm_hash_entry/ for "drm_hash_item"s.

18 years agoFix drm_remove_magic potential memory leak / corruption. Move drm
Thomas Hellstrom [Tue, 6 Jun 2006 17:46:17 +0000 (17:46 +0000)]
Fix drm_remove_magic potential memory leak / corruption. Move drm
    authentication token hashing to new generic hash table implementation.

18 years agoMerge in the drm-sman-branch
Thomas Hellstrom [Tue, 6 Jun 2006 14:19:00 +0000 (14:19 +0000)]
Merge in the drm-sman-branch

18 years agofile via_mm.c was initially added on branch drm-sman-branch.
Thomas Hellstrom [Sun, 28 May 2006 16:20:29 +0000 (16:20 +0000)]
file via_mm.c was initially added on branch drm-sman-branch.

18 years agofile drm_sman.h was initially added on branch drm-sman-branch.
Thomas Hellstrom [Sun, 28 May 2006 16:20:29 +0000 (16:20 +0000)]
file drm_sman.h was initially added on branch drm-sman-branch.

18 years agofile sis_mm.c was initially added on branch drm-sman-branch.
Thomas Hellstrom [Sun, 28 May 2006 16:20:29 +0000 (16:20 +0000)]
file sis_mm.c was initially added on branch drm-sman-branch.

18 years agofile drm_sman.c was initially added on branch drm-sman-branch.
Thomas Hellstrom [Sun, 28 May 2006 16:20:29 +0000 (16:20 +0000)]
file drm_sman.c was initially added on branch drm-sman-branch.

18 years agofile drm_hashtab.h was initially added on branch drm-ttm-branch.
Thomas Hellstrom [Fri, 26 May 2006 19:33:02 +0000 (19:33 +0000)]
file drm_hashtab.h was initially added on branch drm-ttm-branch.

18 years agoAdd support for r200 vertex programs (R200_EMIT_VAP_PVS_CNTL, and new
Roland Scheidegger [Wed, 24 May 2006 18:36:24 +0000 (18:36 +0000)]
Add support for r200 vertex programs (R200_EMIT_VAP_PVS_CNTL, and new
    packet type for making it possible to address whole tcl vector space
    and have a larger count)

18 years agoadd forgotten register define for previous commit
Roland Scheidegger [Sat, 20 May 2006 09:20:05 +0000 (09:20 +0000)]
add forgotten register define for previous commit

18 years agoDo a tcl state flush before accessing tcl vector space. This fixes some
Roland Scheidegger [Sat, 20 May 2006 09:08:18 +0000 (09:08 +0000)]
Do a tcl state flush before accessing tcl vector space. This fixes some
    more problems with flickering (bug #6637). drm may not be appropriate
    place for this, since doing that flush there might both be overkill and
    insufficient in some cases. However, it's hard to figure out when that
    flush is needed, so this has to suffice. There does not seem to be a
    performance penalty associated with it.

18 years agorip out unneeded back compat code
Dave Airlie [Fri, 19 May 2006 04:11:22 +0000 (04:11 +0000)]
rip out unneeded back compat code

18 years agoadd consts to radeon microcode.
Dave Airlie [Thu, 18 May 2006 07:32:37 +0000 (07:32 +0000)]
add consts to radeon microcode.
From: tilman

18 years agoSet entry->virtual for sg maps, fixing ATI PCI/PCIE GART support.
Eric Anholt [Wed, 17 May 2006 06:07:57 +0000 (06:07 +0000)]
Set entry->virtual for sg maps, fixing ATI PCI/PCIE GART support.
PR: kern/97056 Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru>

18 years agoAdd the bits for vblank support on FreeBSD, which most importantly avoids
Eric Anholt [Wed, 17 May 2006 05:44:39 +0000 (05:44 +0000)]
Add the bits for vblank support on FreeBSD, which most importantly avoids
    chasing a NULL pointer at the first 3d app invocation.

18 years agoAdd the workaround that's in the kernel to suppress GCC's warning about
Eric Anholt [Wed, 17 May 2006 05:41:48 +0000 (05:41 +0000)]
Add the workaround that's in the kernel to suppress GCC's warning about
    refusal to inline functions that (in some cases, at least) aren't that
    large.

18 years agofixup GFP_COMP for older kernels and get_page/put_page for newer
Dave Airlie [Sun, 23 Apr 2006 09:05:05 +0000 (09:05 +0000)]
fixup GFP_COMP for older kernels and get_page/put_page for newer

18 years agoFix from Benh for ppc r300 scratch
Dave Airlie [Sun, 23 Apr 2006 08:07:57 +0000 (08:07 +0000)]
Fix from Benh for ppc r300 scratch

18 years agocheck for __FreeBSD_kernel__ (bug 3810)
Brian Paul [Thu, 20 Apr 2006 14:26:59 +0000 (14:26 +0000)]
check for __FreeBSD_kernel__ (bug 3810)

18 years agoErr, use "ifndef" rather than "if !", to avoid compiler warning.
Eric Anholt [Tue, 18 Apr 2006 06:12:22 +0000 (06:12 +0000)]
Err, use "ifndef" rather than "if !", to avoid compiler warning.

18 years agoReorder the DRM_*_AGP enum to match linux's numbers (oops). Fixes i915
Eric Anholt [Tue, 18 Apr 2006 06:08:17 +0000 (06:08 +0000)]
Reorder the DRM_*_AGP enum to match linux's numbers (oops). Fixes i915
    attachment. Make our mga_drv.c use them, while I'm here.
Submitted by: Jonathan Fosburgh <jonathan@fosburgh.org>