possible fix for transparent cursor issue
Subsystems (3)
ThibG from irc reported an issue with transparent cursors, i noticed the ddx had a workaround, which wasn't in the kms code.
ThibG (whoever you are), please test. The patch is untested.
Maarten.
From 7ce90b3297782e5ecada6e4e917be7a9c316d082 Mon Sep 17 00:00:00 2001
From: Maarten Maathuis <[email protected]>
Date: Mon, 20 Jul 2009 21:46:08 +0200
Subject: [PATCH] nv04: import hw workaround for partially transparent pixels from the ddx
- Untested, ThibG from IRC should test this at least.
--- drivers/gpu/drm/nouveau/nouveau_crtc.h | 3 - drivers/gpu/drm/nouveau/nv04_crtc.c | 90 +++++++++++++++++++++++++++++++- drivers/gpu/drm/nouveau/nv50_crtc.c | 2 +- 3 files changed, 90 insertions(+), 5 deletions(-)
drivers/gpu/drm/nouveau/nouveau_crtc.h +0 -3
@@ -76,9 +76,6 @@ struct nouveau_crtc {int nv50_crtc_create (struct drm_device *dev,int index);int nv50_cursor_init (struct nouveau_crtc *);void nv50_cursor_fini (struct nouveau_crtc *); -int nv50_crtc_cursor_set (struct drm_crtc *drm_crtc,struct drm_file *file_priv, -uint32_t buffer_handle,uint32_t width, -uint32_t height);int nv50_crtc_cursor_move (struct drm_crtc *drm_crtc,int x,int y);int nv04_cursor_init (struct nouveau_crtc *);
drivers/gpu/drm/nouveau/nv04_crtc.c +89 -1
102 lines not on this page · raw message
drivers/gpu/drm/nouveau/nv50_crtc.c +1 -1
@@ -367,7 +367,7 @@ static void nv50_crtc_destroy(struct drm_crtc *drm_crtc)kfree (crtc); } -int +static int nv50_crtc_cursor_set (struct drm_crtc *drm_crtc,struct drm_file *file_priv,uint32_t buffer_handle,uint32_t width,uint32_t height) {
Signature · 1 line
1.6.3.3
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau