File 0005-drm-i915-Remove-call-to-intel-gtt.patch of Package drm.openSUSE_Leap_42.3_Update

From c0d9f872db9198cc6e518d09c0a7e1059e75fdf6 Mon Sep 17 00:00:00 2001
From: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Date: Wed, 29 Mar 2017 11:45:05 +0200
Subject: [PATCH 05/12] drm/i915: Remove call to intel-gtt

This is only needed for gen <= 5 support so simply remove it.

Signed-off-by: Patrik Jakobsson <pjakobsson@suse.de>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 0bb4232..c1f2ce5 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -2545,6 +2545,11 @@ static void i915_ggtt_insert_page(struct i915_address_space *vm,
 				  enum i915_cache_level cache_level,
 				  u32 unused)
 {
+	/* Make this a no-op since we don't want to backport intel-gtt and
+	 * because this code is only for <= gen5.
+	 */
+
+/*
 	struct drm_i915_private *dev_priv = to_i915(vm->dev);
 	unsigned int flags = (cache_level == I915_CACHE_NONE) ?
 		AGP_USER_MEMORY : AGP_USER_CACHED_MEMORY;
@@ -2555,6 +2560,7 @@ static void i915_ggtt_insert_page(struct i915_address_space *vm,
 	intel_gtt_insert_page(addr, offset >> PAGE_SHIFT, flags);
 
 	assert_rpm_atomic_end(dev_priv, rpm_atomic_seq);
+*/
 }
 
 static void i915_ggtt_insert_entries(struct i915_address_space *vm,
-- 
2.12.0