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