From c250b2e96d9f65e68acc768143746bc4fac178b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 2 May 2007 12:02:40 +0200 Subject: [PATCH] i915: Use maptype _DRM_TTM for PRIV1. Makes sure the userspace mappings are uncached. --- linux-core/i915_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-core/i915_buffer.c b/linux-core/i915_buffer.c index 9943c397..f9a8c50d 100644 --- a/linux-core/i915_buffer.c +++ b/linux-core/i915_buffer.c @@ -152,7 +152,7 @@ int i915_init_mem_type(drm_device_t * dev, uint32_t type, man->io_addr -= virt_to_phys(man->io_addr); man->flags = _DRM_FLAG_MEMTYPE_MAPPABLE | _DRM_FLAG_MEMTYPE_FIXED; - man->drm_bus_maptype = _DRM_AGP/*TTM*/; + man->drm_bus_maptype = _DRM_TTM; break; default: DRM_ERROR("Unsupported memory type %u\n", (unsigned)type);