Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269642
b: refs/heads/master
c: 629c1b9
h: refs/heads/master
v: v3
  • Loading branch information
Ben Skeggs committed Sep 20, 2011
1 parent 6fdcc7d commit 50d3288
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: f3fdc52dd73a083dcb80f95e5c6ce8a33277b102
refs/heads/master: 629c1b9207386b00abd6453b72a19b15cd2202f8
16 changes: 10 additions & 6 deletions trunk/drivers/gpu/drm/nouveau/nvd0_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,19 +352,23 @@ nvd0_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode,
u32 vss2be = vsyncw + vbackp;
u32 hss2de = htotal - hfrntp;
u32 vss2de = vtotal - vfrntp;
u32 hstart = 0;
u32 vstart = 0;
u32 *push;
u32 syncs, *push;
int ret;

syncs = 0x00000001;
if (mode->flags & DRM_MODE_FLAG_NHSYNC)
syncs |= 0x00000008;
if (mode->flags & DRM_MODE_FLAG_NVSYNC)
syncs |= 0x00000010;

ret = nvd0_crtc_swap_fbs(crtc, old_fb);
if (ret)
return ret;

push = evo_wait(crtc->dev, 0, 64);
if (push) {
evo_mthd(push, 0x0410 + (nv_crtc->index * 0x300), 5);
evo_data(push, (vstart << 16) | hstart);
evo_data(push, 0x00000000);
evo_data(push, (vtotal << 16) | htotal);
evo_data(push, (vsyncw << 16) | hsyncw);
evo_data(push, (vss2be << 16) | hss2be);
Expand All @@ -375,8 +379,8 @@ nvd0_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *umode,
evo_data(push, mode->clock * 1000);
evo_data(push, 0x00200000); /* ??? */
evo_data(push, mode->clock * 1000);
evo_mthd(push, 0x0408 + (nv_crtc->index * 0x300), 1);
evo_data(push, 0x31ec6000); /* ??? */
evo_mthd(push, 0x0404 + (nv_crtc->index * 0x300), 1);
evo_data(push, syncs);
evo_kick(push, crtc->dev, 0);
}

Expand Down

0 comments on commit 50d3288

Please sign in to comment.