mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate
commit af5e7d84b0 upstream.
Signed-off-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6700eb4d0a
commit
1a475b7af6
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user