Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357877
b: refs/heads/master
c: ebc052e
h: refs/heads/master
i:
  357875: 1b07d0c
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Nov 30, 2012
1 parent bfab327 commit bdbd16a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ffb0ff283cca16f72caf29c44496d83b0c291fb
refs/heads/master: ebc052e0c65f84f68626e388ffa1704b3a190ef7
6 changes: 5 additions & 1 deletion trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,11 @@ static int intel_init_ring_buffer(struct drm_device *dev,
return ret;
}

obj = i915_gem_alloc_object(dev, ring->size);
obj = NULL;
if (!HAS_LLC(dev))
obj = i915_gem_object_create_stolen(dev, ring->size);
if (obj == NULL)
obj = i915_gem_alloc_object(dev, ring->size);
if (obj == NULL) {
DRM_ERROR("Failed to allocate ringbuffer\n");
ret = -ENOMEM;
Expand Down

0 comments on commit bdbd16a

Please sign in to comment.