summaryrefslogtreecommitdiffstats
path: root/drm-nouveau-safetile-getparam.patch
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-07-29 17:18:45 -0700
committerJesse Keating <jkeating@redhat.com>2010-07-29 17:18:45 -0700
commit2f82dda4a9bf41e64e864889bf06564bdf826e25 (patch)
tree118a7b483ae5de4dbf83d20001302f1404866ef0 /drm-nouveau-safetile-getparam.patch
parent64ba2e5ffde5f2418eb26c700cb0ab62b04e5013 (diff)
downloaddom0-kernel-2f82dda4a9bf41e64e864889bf06564bdf826e25.tar.gz
dom0-kernel-2f82dda4a9bf41e64e864889bf06564bdf826e25.tar.xz
dom0-kernel-2f82dda4a9bf41e64e864889bf06564bdf826e25.zip
initial srpm import
Diffstat (limited to 'drm-nouveau-safetile-getparam.patch')
-rw-r--r--drm-nouveau-safetile-getparam.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/drm-nouveau-safetile-getparam.patch b/drm-nouveau-safetile-getparam.patch
new file mode 100644
index 0000000..09f9734
--- /dev/null
+++ b/drm-nouveau-safetile-getparam.patch
@@ -0,0 +1,26 @@
+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
+