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:07:57 +00:00
parent dcfcf1a84d
commit bdd381a7ce

View file

@ -85,6 +85,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,