|
@@ -1333,8 +1333,10 @@ void intel_setup_overlay(struct drm_device *dev)
|
|
|
|
|
|
|
|
overlay->dev = dev;
|
|
overlay->dev = dev;
|
|
|
|
|
|
|
|
- reg_bo = i915_gem_alloc_object(dev, PAGE_SIZE);
|
|
|
|
|
- if (!reg_bo)
|
|
|
|
|
|
|
+ reg_bo = i915_gem_object_create_stolen(dev, PAGE_SIZE);
|
|
|
|
|
+ if (reg_bo == NULL)
|
|
|
|
|
+ reg_bo = i915_gem_alloc_object(dev, PAGE_SIZE);
|
|
|
|
|
+ if (reg_bo == NULL)
|
|
|
goto out_free;
|
|
goto out_free;
|
|
|
overlay->reg_bo = reg_bo;
|
|
overlay->reg_bo = reg_bo;
|
|
|
|
|
|