Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174522
b: refs/heads/master
c: 1df4b35
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter authored and Eric Anholt committed Nov 5, 2009
1 parent 223d7e2 commit 9396a0b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 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: 03f77ea5972e6a2363152aec692744cac824daba
refs/heads/master: 1df4b35b61df27fc5b173fe2789d976e40e1dc22
1 change: 0 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@ int i915_gem_idle(struct drm_device *dev);
uint32_t i915_add_request(struct drm_device *dev, struct drm_file *file_priv,
uint32_t flush_domains);
int i915_do_wait_request(struct drm_device *dev, uint32_t seqno, int interruptible);
int i915_lp_ring_sync(struct drm_device *dev);
int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
int i915_gem_object_set_to_gtt_domain(struct drm_gem_object *obj,
int write);
Expand Down
18 changes: 0 additions & 18 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,24 +1890,6 @@ i915_wait_request(struct drm_device *dev, uint32_t seqno)
return i915_do_wait_request(dev, seqno, 1);
}

/**
* Waits for the ring to finish up to the latest request. Usefull for waiting
* for flip events, e.g for the overlay support. */
int i915_lp_ring_sync(struct drm_device *dev)
{
uint32_t seqno;
int ret;

seqno = i915_add_request(dev, NULL, 0);

if (seqno == 0)
return -ENOMEM;

ret = i915_do_wait_request(dev, seqno, 0);
BUG_ON(ret == -ERESTARTSYS);
return ret;
}

static void
i915_gem_flush(struct drm_device *dev,
uint32_t invalidate_domains,
Expand Down

0 comments on commit 9396a0b

Please sign in to comment.