Skip to content

Commit af5e7d8

Browse files
Christoph BumillerBen Skeggs
authored andcommitted
drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate
Signed-off-by: Christoph Bumiller <[email protected]> Signed-off-by: Ben Skeggs <[email protected]> Cc: [email protected]
1 parent e2b34fa commit af5e7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nvd0_display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ nvd0_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
790790
struct nouveau_crtc *nv_crtc = nouveau_crtc(crtc);
791791
int ch = EVO_CURS(nv_crtc->index);
792792

793-
evo_piow(crtc->dev, ch, 0x0084, (y << 16) | x);
793+
evo_piow(crtc->dev, ch, 0x0084, (y << 16) | (x & 0xffff));
794794
evo_piow(crtc->dev, ch, 0x0080, 0x00000000);
795795
return 0;
796796
}

0 commit comments

Comments
 (0)