Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218338
b: refs/heads/master
c: dc3f82c
h: refs/heads/master
v: v3
  • Loading branch information
Chia-I Wu authored and Chris Wilson committed Oct 21, 2010
1 parent 226a705 commit a6c5886
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: f00a3ddf91d596bece5fa31e8ce2e8a3b4c0623b
refs/heads/master: dc3f82c2e5c3f06e43855f417e4fcfc244383916
13 changes: 8 additions & 5 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -4991,9 +4991,7 @@ static void do_intel_finish_page_flip(struct drm_device *dev,

spin_unlock_irqrestore(&dev->event_lock, flags);

obj_priv = to_intel_bo(work->pending_flip_obj);

/* Initial scanout buffer will have a 0 pending flip count */
obj_priv = to_intel_bo(work->old_fb_obj);
atomic_clear_mask(1 << intel_crtc->plane,
&obj_priv->pending_flip.counter);
if (atomic_read(&obj_priv->pending_flip) == 0)
Expand Down Expand Up @@ -5092,9 +5090,14 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
if (ret)
goto cleanup_objs;

obj_priv = to_intel_bo(obj);
atomic_add(1 << intel_crtc->plane, &obj_priv->pending_flip);
/* Block clients from rendering to the new back buffer until
* the flip occurs and the object is no longer visible.
*/
atomic_add(1 << intel_crtc->plane,
&to_intel_bo(work->old_fb_obj)->pending_flip);

work->pending_flip_obj = obj;
obj_priv = to_intel_bo(obj);

if (IS_GEN3(dev) || IS_GEN2(dev)) {
u32 flip_mask;
Expand Down

0 comments on commit a6c5886

Please sign in to comment.