Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282581
b: refs/heads/master
c: a4eaa0a
h: refs/heads/master
i:
  282579: d73a9e1
v: v3
  • Loading branch information
Maxim Levitsky authored and Ben Skeggs committed Dec 21, 2011
1 parent de5f9d0 commit b565d93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 71d91f655e549b0eeeb788decad7791ca6a0885b
refs/heads/master: a4eaa0a0427ef13468d784953de40c3087e6d870
18 changes: 9 additions & 9 deletions trunk/drivers/gpu/drm/nouveau/nouveau_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,6 @@ nouveau_pci_resume(struct pci_dev *pdev)

engine->display.init(dev);

list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
u32 offset = nv_crtc->cursor.nvbo->bo.offset;

nv_crtc->cursor.set_offset(nv_crtc, offset);
nv_crtc->cursor.set_pos(nv_crtc, nv_crtc->cursor_saved_x,
nv_crtc->cursor_saved_y);
}

/* Force CLUT to get re-loaded during modeset */
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
Expand All @@ -386,6 +377,15 @@ nouveau_pci_resume(struct pci_dev *pdev)

drm_helper_resume_force_mode(dev);

list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
u32 offset = nv_crtc->cursor.nvbo->bo.offset;

nv_crtc->cursor.set_offset(nv_crtc, offset);
nv_crtc->cursor.set_pos(nv_crtc, nv_crtc->cursor_saved_x,
nv_crtc->cursor_saved_y);
}

nouveau_fbcon_restore_accel(dev);
drm_kms_helper_poll_enable(dev);
return 0;
Expand Down

0 comments on commit b565d93

Please sign in to comment.