|
@@ -102,8 +102,6 @@ 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? */
|
|
|
|
|
|
/*
|
|
|
* We don't allow disabling PPGTT for gen9+ as it's a requirement for
|
|
@@ -134,7 +132,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 && i915.enable_execlists)
|
|
|
+ return 2;
|
|
|
+ else
|
|
|
+ return has_aliasing_ppgtt ? 1 : 0;
|
|
|
}
|
|
|
|
|
|
|