Blame drm-nouveau-safetile-getparam.patch
|
Jesse Keating |
2f82dda |
From 2aa78d8442bd947637ed81da00fd9c22232d2ed0 Mon Sep 17 00:00:00 2001
|
|
Jesse Keating |
2f82dda |
From: Ben Skeggs <bskeggs@redhat.com>
|
|
Jesse Keating |
2f82dda |
Date: Wed, 9 Sep 2009 16:16:44 +1000
|
|
Jesse Keating |
2f82dda |
Subject: [PATCH 5/6] f12: add getparam to know scanout tile_flags is safe
|
|
Jesse Keating |
2f82dda |
|
|
Jesse Keating |
2f82dda |
---
|
|
Jesse Keating |
2f82dda |
drivers/gpu/drm/nouveau/nouveau_state.c | 3 +++
|
|
Jesse Keating |
2f82dda |
1 files changed, 3 insertions(+), 0 deletions(-)
|
|
Jesse Keating |
2f82dda |
|
|
Jesse Keating |
2f82dda |
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
|
|
Jesse Keating |
2f82dda |
index 36f8268..27c4d48 100644
|
|
Jesse Keating |
2f82dda |
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
|
|
Jesse Keating |
2f82dda |
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
|
|
Jesse Keating |
2f82dda |
@@ -861,6 +861,9 @@ int nouveau_ioctl_getparam(struct drm_device *dev, void *data,
|
|
Jesse Keating |
2f82dda |
|
|
Jesse Keating |
2f82dda |
getparam->value = dev_priv->vm_vram_base;
|
|
Jesse Keating |
2f82dda |
break;
|
|
Jesse Keating |
2f82dda |
+ case 0xdeadcafe00000003: /* NOUVEAU_GETPARAM_SCANOUT_TILEFLAGS */
|
|
Jesse Keating |
2f82dda |
+ getparam->value = 1;
|
|
Jesse Keating |
2f82dda |
+ break;
|
|
Jesse Keating |
2f82dda |
case NOUVEAU_GETPARAM_GRAPH_UNITS:
|
|
Jesse Keating |
2f82dda |
/* NV40 and NV50 versions are quite different, but register
|
|
Jesse Keating |
2f82dda |
* address is the same. User is supposed to know the card
|
|
Jesse Keating |
2f82dda |
--
|
|
Jesse Keating |
2f82dda |
1.6.5.2
|
|
Jesse Keating |
2f82dda |
|