Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228668
b: refs/heads/master
c: 33626e6
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson committed Oct 29, 2010
1 parent 22d33fc commit ca7a10f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 872d860c85e30cdc97e7c91723257f4fcf04d5e9
refs/heads/master: 33626e6a08669b1a5834e76363dcd5c8733a4278
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,17 @@ int intel_init_ring_buffer(struct drm_device *dev,

void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring)
{
struct drm_i915_private *dev_priv;
int ret;

if (ring->gem_object == NULL)
return;

/* Disable the ring buffer. The ring must be idle at this point */
dev_priv = ring->dev->dev_private;
ret = intel_wait_ring_buffer(ring, ring->size - 8);
I915_WRITE_CTL(ring, 0);

drm_core_ioremapfree(&ring->map, ring->dev);

i915_gem_object_unpin(ring->gem_object);
Expand Down

0 comments on commit ca7a10f

Please sign in to comment.