Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288085
b: refs/heads/master
c: 5d031e5
h: refs/heads/master
i:
  288083: 34f9509
v: v3
  • Loading branch information
Chris Wilson authored and Jesse Barnes committed Feb 27, 2012
1 parent cb5b563 commit a41dfd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 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: aed3f09db39596e539f90b11a5016aea4d8442e1
refs/heads/master: 5d031e5b633d910f35e6e0abce94d9d842390006
14 changes: 1 addition & 13 deletions trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static int init_ring_common(struct intel_ring_buffer *ring)

I915_WRITE_CTL(ring,
((ring->size - PAGE_SIZE) & RING_NR_PAGES)
| RING_REPORT_64K | RING_VALID);
| RING_VALID);

/* If the head is still not zero, the ring is dead */
if ((I915_READ_CTL(ring) & RING_VALID) == 0 ||
Expand Down Expand Up @@ -1132,18 +1132,6 @@ int intel_wait_ring_buffer(struct intel_ring_buffer *ring, int n)
struct drm_device *dev = ring->dev;
struct drm_i915_private *dev_priv = dev->dev_private;
unsigned long end;
u32 head;

/* If the reported head position has wrapped or hasn't advanced,
* fallback to the slow and accurate path.
*/
head = intel_read_status_page(ring, 4);
if (head > ring->head) {
ring->head = head;
ring->space = ring_space(ring);
if (ring->space >= n)
return 0;
}

trace_i915_ring_wait_begin(ring);
if (drm_core_check_feature(dev, DRIVER_GEM))
Expand Down

0 comments on commit a41dfd3

Please sign in to comment.