Merge from DRM CVS:

Set entry->virtual for sg maps, fixing ATI PCI/PCIE GART support.

PR:		kern/97056
Submitted by:	Stanislav Sedov <ssedov@mbsd.msk.ru>
This commit is contained in:
Eric Anholt 2006-05-17 06:29:36 +00:00
parent ef39743bc3
commit ad33688fca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158682

View file

@ -88,6 +88,7 @@ int drm_sg_alloc(DRM_IOCTL_ARGS)
DRM_DEBUG( "sg alloc handle = %08lx\n", entry->handle );
entry->virtual = (void *)entry->handle;
request.handle = entry->handle;
DRM_COPY_TO_USER_IOCTL( (drm_scatter_gather_t *)data,