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