Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228670
b: refs/heads/master
c: c584fe4
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson committed Oct 29, 2010
1 parent c860b60 commit cf5ec46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: 1d8f38f4e7146d22f7fbc94eef0508bd75463f54
refs/heads/master: c584fe47e4d92934c10e5d7f932ee042587dbcff
12 changes: 1 addition & 11 deletions trunk/drivers/gpu/drm/i915/intel_ringbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ static int init_status_page(struct intel_ring_buffer *ring)
int intel_init_ring_buffer(struct drm_device *dev,
struct intel_ring_buffer *ring)
{
struct drm_i915_private *dev_priv = dev->dev_private;
struct drm_i915_gem_object *obj_priv;
struct drm_gem_object *obj;
int ret;
Expand Down Expand Up @@ -626,16 +625,7 @@ int intel_init_ring_buffer(struct drm_device *dev,
if (ret)
goto err_unmap;

if (!drm_core_check_feature(dev, DRIVER_MODESET))
i915_kernel_lost_context(dev);
else {
ring->head = I915_READ_HEAD(ring) & HEAD_ADDR;
ring->tail = I915_READ_TAIL(ring) & TAIL_ADDR;
ring->space = ring->head - (ring->tail + 8);
if (ring->space < 0)
ring->space += ring->size;
}
return ret;
return 0;

err_unmap:
drm_core_ioremapfree(&ring->map, dev);
Expand Down

0 comments on commit cf5ec46

Please sign in to comment.