From 06afa977e287dd60c70b0a8b46de85ed95041cb5 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 7 Dec 2013 10:53:30 +0000 Subject: No need to blow away the cache after updating GTT entries. The driver already flushes individual cache lines when needed. --- sys/dev/pci/drm/i915/i915_gem_gtt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/pci/drm') diff --git a/sys/dev/pci/drm/i915/i915_gem_gtt.c b/sys/dev/pci/drm/i915/i915_gem_gtt.c index a066ce33a66..8b48227d5f9 100644 --- a/sys/dev/pci/drm/i915/i915_gem_gtt.c +++ b/sys/dev/pci/drm/i915/i915_gem_gtt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_gem_gtt.c,v 1.6 2013/12/01 20:19:15 kettenis Exp $ */ +/* $OpenBSD: i915_gem_gtt.c,v 1.7 2013/12/07 10:53:29 kettenis Exp $ */ /* * Copyright © 2010 Daniel Vetter * @@ -412,7 +412,6 @@ static void i915_ggtt_clear_range(struct drm_device *dev, sc->sc_methods->unbind_page(sc->sc_chipc, addr); addr += PAGE_SIZE; } - agp_flush_cache(); } #endif @@ -555,7 +554,6 @@ void i915_gem_gtt_bind_object(struct drm_i915_gem_object *obj, } addr += PAGE_SIZE; } - agp_flush_cache(); obj->has_global_gtt_mapping = 1; } -- cgit v1.2.3