nvir/gv100: enable support for tu1xx
authorBen Skeggs <bskeggs@redhat.com>
Sat, 6 Jun 2020 23:52:37 +0000 (09:52 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 22:52:42 +0000 (22:52 +0000)
SM75 has a bunch more stuff, but is otherwise backwards-compatible
with SM70 SASS.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>

src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp

index 272c591ff0a9c817da62afc62097fa825325e89f..4e5b21d917642a6ad2a36f37704dab5b6ff24a8b 100644 (file)
@@ -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:
index 06154a90b0786202d5179a512aab450c4926f8b1..765375a47dfb0ea052e7fcd5dade6a3c6ca4548e 100644 (file)
@@ -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: