Mesa (main): nv50/ir: recoginse Ampere

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 31 02:04:11 UTC 2022


Module: Mesa
Branch: main
Commit: e06c373c6bca36ca32dcc3ea488b0055c63bce96
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e06c373c6bca36ca32dcc3ea488b0055c63bce96

Author: Karol Herbst <kherbst at redhat.com>
Date:   Mon May 30 23:39:59 2022 +0200

nv50/ir: recoginse Ampere

Signed-off-by: Karol Herbst <kherbst at redhat.com>
Acked-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16784>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp     | 2 ++
 src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
index b351ad7ae51..c40bdb017c1 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
@@ -1037,6 +1037,7 @@ GCRA::coalesce(ArrayList& insns)
    case 0x130:
    case 0x140:
    case 0x160:
+   case 0x170:
       ret = doCoalesce(insns, JOIN_MASK_UNION);
       break;
    default:
@@ -2557,6 +2558,7 @@ RegAlloc::InsertConstraintsPass::visit(BasicBlock *bb)
          case 0x130:
          case 0x140:
          case 0x160:
+         case 0x170:
             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 e5a3a995505..abbb6221ae4 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 0x170:
    case 0x160:
    case 0x140:
       return getTargetGV100(chipset);



More information about the mesa-commit mailing list