Skip to content

Commit

Permalink
drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Bumiller <[email protected]>
Signed-off-by: Ben Skeggs <[email protected]>
Cc: [email protected]
  • Loading branch information
Christoph Bumiller authored and Ben Skeggs committed Aug 13, 2012
1 parent e2b34fa commit af5e7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nvd0_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ nvd0_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
int ch = EVO_CURS(nv_crtc->index);

evo_piow(crtc->dev, ch, 0x0084, (y << 16) | x);
evo_piow(crtc->dev, ch, 0x0084, (y << 16) | (x & 0xffff));
evo_piow(crtc->dev, ch, 0x0080, 0x00000000);
return 0;
}
Expand Down

0 comments on commit af5e7d8

Please sign in to comment.