summaryrefslogtreecommitdiff
path: root/nouveau/nouveau.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-11-23 12:40:30 +1000
committerBen Skeggs <bskeggs@redhat.com>2013-01-16 19:48:49 +1000
commitc41b494c47f8e514e69cb8c2f2ace41d5fa17c94 (patch)
tree1563deb3f0f957dba19cf5328ce4fe15e5f5923d /nouveau/nouveau.c
parent9e6f96a579fc2ed241e9a31a35a5995129ee8f7a (diff)
nouveau: expose channel engine selection on kepler chipsets
v2: Take Maarten Lankhorst's suggestion of nesting the struct to prevent sizeof() issues due to padding on older revisions. Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'nouveau/nouveau.c')
-rw-r--r--nouveau/nouveau.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index 940d9339..9b32e319 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -247,7 +247,10 @@ nouveau_object_new(struct nouveau_object *parent, uint64_t handle,
if (dev->chipset < 0xc0)
ret = abi16_chan_nv04(obj);
else
+ if (dev->chipset < 0xe0)
ret = abi16_chan_nvc0(obj);
+ else
+ ret = abi16_chan_nve0(obj);
}
break;
default: