Skip to contentSkip to conversation

drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate

PATCH In review Christoph Bumiller 3 participants 3 messages Jul 26, 2012 – Jul 27, 2012 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nvd0/disp: mask off high 16 bit of negative cursor x-coordinate

---
 drivers/gpu/drm/nouveau/nvd0_display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nvd0_display.c +1 -1
index c486d3c..c50b075 100644
@@ -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;
 }
Signature · 1 line
1.7.3.4

A message that is not in the archive (sent off-list or not yet received): 1343328799-9372-1-git-send-email-e0425955-oe7qfRrRQffzPE21tAIdciO7C/[email protected]

#2 lore raw

Op 26-07-12 20:53, Christoph Bumiller schreef:

Quoted 9 lines
---
 drivers/gpu/drm/nouveau/nvd0_display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nvd0_display.c +0 -0
index c486d3c..c50b075 100644

drivers/gpu/drm/nouveau/nvd0_display.c nvd0_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) · line 796

Quoted 8 lines
drivers/gpu/drm/nouveau/nvd0_display.c +1 -1
@@ -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;
 }

3.2 didn't have d9 support yet.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 13 lines · Maarten Lankhorst

Op 26-07-12 20:53, Christoph Bumiller schreef:

Quoted 12 lines
---
 drivers/gpu/drm/nouveau/nvd0_display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nvd0_display.c +0 -0
index c486d3c..c50b075 100644
@@ -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);
 
Quoted 8 lines

drivers/gpu/drm/nouveau/nvd0_display.c nvd0_crtc_cursor_move(struct drm_crtc *crtc, int x, int y) · line 796

Quoted 5 lines
drivers/gpu/drm/nouveau/nvd0_display.c +1 -1
-     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;
 }

I've already picked this up for nouveau git also.

Quoted 7 lines

3.2 didn't have d9 support yet.

_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau