Only the NVA3/5/8/F tesla chips have a copy engine. Don't bother trying
to create one on earlier tesla chips (and thus printing an error on
failure).

Signed-off-by: Ilia Mirkin <[email protected]>
---
 src/nouveau_copy.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/nouveau_copy.c b/src/nouveau_copy.c
index f46f0c3..3202121 100644
--- a/src/nouveau_copy.c
+++ b/src/nouveau_copy.c
@@ -61,6 +61,10 @@ nouveau_copy_init(ScreenPtr pScreen)
 
        switch (pNv->Architecture) {
        case NV_TESLA:
+               if (pNv->dev->chipset < 0xa3 ||
+                   pNv->dev->chipset == 0xaa ||
+                   pNv->dev->chipset == 0xac)
+                       return FALSE;
                data = &(struct nv04_fifo) {
                        .vram = NvDmaFB,
                        .gart = NvDmaTT,
-- 
1.8.5.5

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to