Mesa (main): panfrost: Add GPU G76 to the set of known ids

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 13 15:24:54 UTC 2022


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

Author: Carsten Haitzler <carsten.haitzler at foss.arm.com>
Date:   Wed Jan 12 15:39:04 2022 +0000

panfrost: Add GPU G76 to the set of known ids

This is another working GPU so add the ID to the known set. Working on
real silicon and tested.

Signed-off-by: Carsten Haitzler <carsten.haitzler at foss.arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14517>

---

 src/gallium/drivers/panfrost/pan_screen.c | 1 +
 src/panfrost/include/panfrost-quirks.h    | 1 +
 src/panfrost/lib/pan_props.c              | 1 +
 src/panfrost/perf/pan_perf.c              | 2 ++
 4 files changed, 5 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index a607991626a..48cdb78056d 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -865,6 +865,7 @@ panfrost_create_screen(int fd, struct renderonly *ro)
         case 0x860: /* T860 */
         case 0x6221: /* G72 */
         case 0x7093: /* G31 */
+        case 0x7211: /* G76 */
         case 0x7212: /* G52 */
         case 0x7402: /* G52r1 */
                 break;
diff --git a/src/panfrost/include/panfrost-quirks.h b/src/panfrost/include/panfrost-quirks.h
index 804dc311c29..e1c12b36e83 100644
--- a/src/panfrost/include/panfrost-quirks.h
+++ b/src/panfrost/include/panfrost-quirks.h
@@ -111,6 +111,7 @@ panfrost_get_quirks(unsigned gpu_id, unsigned gpu_revision)
                         | (gpu_revision >= 0x30 ? HAS_ANISOTROPIC : 0);
 
         case 0x7093: /* G31 */
+        case 0x7211: /* G76 */
         case 0x7212: /* G52 */
         case 0x7402: /* G52r1 */
                 return BIFROST_QUIRKS | HAS_ANISOTROPIC;
diff --git a/src/panfrost/lib/pan_props.c b/src/panfrost/lib/pan_props.c
index 44d626fd6ff..a7ef43e6328 100644
--- a/src/panfrost/lib/pan_props.c
+++ b/src/panfrost/lib/pan_props.c
@@ -207,6 +207,7 @@ panfrost_model_name(unsigned gpu_id)
         case 0x880: return "Mali-T880 (Panfrost)";
         case 0x6221: return "Mali-G72 (Panfrost)";
         case 0x7093: return "Mali-G31 (Panfrost)";
+        case 0x7211: return "Mali-G76 (Panfrost)";
         case 0x7212: return "Mali-G52 (Panfrost)";
         case 0x7402: return "Mali-G52 r1 (Panfrost)";
         default:
diff --git a/src/panfrost/perf/pan_perf.c b/src/panfrost/perf/pan_perf.c
index f20a81b2238..098ecb300e5 100644
--- a/src/panfrost/perf/pan_perf.c
+++ b/src/panfrost/perf/pan_perf.c
@@ -67,6 +67,8 @@ get_perf_config(unsigned int gpu_id)
       return &panfrost_perf_config_thex;
    case 0x7093:
       return &panfrost_perf_config_tdvx;
+   case 0x7211:
+      return &panfrost_perf_config_tnox;
    case 0x7212:
    case 0x7402:
       return &panfrost_perf_config_tgox;



More information about the mesa-commit mailing list