public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Use true PPGTT in Gen8 if execlists are enabled
@ 2014-12-11 12:07 Michel Thierry
  2014-12-11 18:45 ` shuang.he
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Michel Thierry @ 2014-12-11 12:07 UTC (permalink / raw)
  To: intel-gfx

When execlists submission is enabled, try full ppgtt by default.

Note, this patch considers that execlist support has been enabled by
default on Gen8.

Signed-off-by: Michel Thierry <michel.thierry@intel.com>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 171f6ea..4ed3904 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -40,8 +40,8 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
 
 	has_aliasing_ppgtt = INTEL_INFO(dev)->gen >= 6;
 	has_full_ppgtt = INTEL_INFO(dev)->gen >= 7;
-	if (IS_GEN8(dev))
-		has_full_ppgtt = false; /* XXX why? */
+	if (IS_GEN8(dev) && !i915.enable_execlists)
+		has_full_ppgtt = false; /* Only enforce with execlists */
 
 	/*
 	 * We don't allow disabling PPGTT for gen9+ as it's a requirement for
@@ -72,7 +72,10 @@ static int sanitize_enable_ppgtt(struct drm_device *dev, int enable_ppgtt)
 		return 0;
 	}
 
-	return has_aliasing_ppgtt ? 1 : 0;
+	if (INTEL_INFO(dev)->gen < 8)
+		return has_aliasing_ppgtt ? 1 : 0;
+	else
+		return has_full_ppgtt ? 2 : has_aliasing_ppgtt ? 1 : 0;
 }
 
 
-- 
2.1.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-12-16  8:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 12:07 [PATCH] drm/i915: Use true PPGTT in Gen8 if execlists are enabled Michel Thierry
2014-12-11 18:45 ` shuang.he
2014-12-15 10:11 ` Daniel Vetter
2014-12-15 12:47   ` Michel Thierry
2014-12-15 14:22     ` Daniel Vetter
2014-12-15 14:28       ` Daniel Vetter
2014-12-15 14:49         ` Michel Thierry
2014-12-15 14:58 ` [PATCH v2] drm/i915: Use true PPGTT in Gen8+ when " Michel Thierry
2014-12-15 15:08   ` Daniel Vetter
2014-12-15 15:32     ` Daniel Vetter
2014-12-16  8:52   ` shuang.he

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox