Skip to contentSkip to conversation

copy: don't bother trying to create copy on pre-nva3

PATCH New Ilia Mirkin 1 participant 1 message Sep 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 copy: don't bother trying to create copy on pre-nva3

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).

---
 src/nouveau_copy.c | 4 ++++
 1 file changed, 4 insertions(+)
src/nouveau_copy.c +4 -0
index f46f0c3..3202121 100644
@@ -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,
Signature · 1 line
1.8.5.5