From: Ben Skeggs Date: Sat, 6 Jun 2020 23:52:37 +0000 (+1000) Subject: nvir/gv100: enable support for tu1xx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7458e21e2b9ba4395bf16a1b03e04380438424a5;p=mesa.git nvir/gv100: enable support for tu1xx SM75 has a bunch more stuff, but is otherwise backwards-compatible with SM70 SASS. Signed-off-by: Ben Skeggs Reviewed-by: Karol Herbst Part-of: --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp index 272c591ff0a..4e5b21d9176 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp @@ -989,6 +989,7 @@ GCRA::coalesce(ArrayList& insns) case 0x120: case 0x130: case 0x140: + case 0x160: ret = doCoalesce(insns, JOIN_MASK_UNION); break; default: @@ -2499,6 +2500,7 @@ RegAlloc::InsertConstraintsPass::visit(BasicBlock *bb) case 0x120: case 0x130: case 0x140: + case 0x160: texConstraintGM107(tex); break; default: diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp index 06154a90b07..765375a47df 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp @@ -154,6 +154,7 @@ Target *Target::create(unsigned int chipset) STATIC_ASSERT(ARRAY_SIZE(operationSrcNr) == OP_LAST + 1); STATIC_ASSERT(ARRAY_SIZE(operationClass) == OP_LAST + 1); switch (chipset & ~0xf) { + case 0x160: case 0x140: return getTargetGV100(chipset); case 0x110: