Message ID | 1269313953-9990-2-git-send-email-zhenyuw@linux.intel.com (mailing list archive) |
---|---|
State | Deferred, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 61fb967..1cb5299 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1461,7 +1461,9 @@ static int i915_load_modeset_init(struct drm_device *dev, cfb_size = 12 * 1024 * 1024; else cfb_size = 8 * 1024 * 1024; - } else + } else if (prealloc_size >= (16 * 1024 * 1024)) + cfb_size = 12 * 1024 * 1024; + else cfb_size = 8*1024*1024; } else /* fall back to 7/8 of the stolen space */ cfb_size = prealloc_size * 7 / 8;