From bdd381a7cea814d12d3207a67503cc1a5e353bed Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 17 May 2006 06:07:57 +0000 Subject: Set entry->virtual for sg maps, fixing ATI PCI/PCIE GART support. PR: kern/97056 Submitted by: Stanislav Sedov --- bsd-core/drm_scatter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-core/drm_scatter.c b/bsd-core/drm_scatter.c index c26a3802..9dc280a4 100644 --- a/bsd-core/drm_scatter.c +++ b/bsd-core/drm_scatter.c @@ -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, -- cgit v1.2.3