]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/gpu/drm/drm_agpsupport.c
i915: Map status page cached for chips with GTT-based HWS location.
[linux-2.6-omap-h63xx.git] / drivers / gpu / drm / drm_agpsupport.c
index 2639be2db9e505d887ca633297adf8338f1b2809..3d33b8252b58dadb1a0102824889a9abb482bf2d 100644 (file)
@@ -464,7 +464,8 @@ DRM_AGP_MEM *
 drm_agp_bind_pages(struct drm_device *dev,
                   struct page **pages,
                   unsigned long num_pages,
-                  uint32_t gtt_offset)
+                  uint32_t gtt_offset,
+                  u32 type)
 {
        DRM_AGP_MEM *mem;
        int ret, i;
@@ -472,7 +473,7 @@ drm_agp_bind_pages(struct drm_device *dev,
        DRM_DEBUG("\n");
 
        mem = drm_agp_allocate_memory(dev->agp->bridge, num_pages,
-                                     AGP_USER_MEMORY);
+                                     type);
        if (mem == NULL) {
                DRM_ERROR("Failed to allocate memory for %ld pages\n",
                          num_pages);