aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-03-18 10:25:59 +1000
committerBen Skeggs <bskeggs@redhat.com>2011-05-16 10:48:48 +1000
commit7ff5441e55feb1f6f38c39f32f31aa8a0e8f4b69 (patch)
tree59c10167be68dcca3e71a5215246502feb51f4a2 /drivers/gpu/drm/nouveau/nouveau_state.c
parenta82dd49f14742e2529f79feb6360e0993277e788 (diff)
downloadkernel_samsung_smdk4412-7ff5441e55feb1f6f38c39f32f31aa8a0e8f4b69.zip
kernel_samsung_smdk4412-7ff5441e55feb1f6f38c39f32f31aa8a0e8f4b69.tar.gz
kernel_samsung_smdk4412-7ff5441e55feb1f6f38c39f32f31aa8a0e8f4b69.tar.bz2
drm/nva3: implement support for copy engine
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index e50156c..fa1e085 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -598,6 +598,21 @@ nouveau_card_init(struct drm_device *dev)
break;
}
+ switch (dev_priv->card_type) {
+ case NV_50:
+ switch (dev_priv->chipset) {
+ case 0xa3:
+ case 0xa5:
+ case 0xa8:
+ case 0xaf:
+ nva3_copy_create(dev);
+ break;
+ }
+ break;
+ default:
+ break;
+ }
+
if (!nouveau_noaccel) {
for (e = 0; e < NVOBJ_ENGINE_NR; e++) {
if (dev_priv->eng[e]) {