ir3/a7xx: Disable shared consts for a7xx
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 3 May 2023 17:32:20 +0000 (19:32 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 16:19:30 +0000 (16:19 +0000)
a7xx introduced a new way to upload shared consts with old one
becoming unavailable, use fallback mechanism until we implement
the new shared consts.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23217>

src/freedreno/ir3/ir3_compiler.c

index 61cc68a..eb0001a 100644 (file)
@@ -197,9 +197,16 @@ ir3_compiler_create(struct fd_device *dev, const struct fd_dev_id *dev_id,
       compiler->has_dp2acc = dev_info->a6xx.has_dp2acc;
       compiler->has_dp4acc = dev_info->a6xx.has_dp4acc;
 
-      compiler->shared_consts_base_offset = 504;
-      compiler->shared_consts_size = 8;
-      compiler->geom_shared_consts_size_quirk = 16;
+      if (compiler->gen == 6) {
+         compiler->shared_consts_base_offset = 504;
+         compiler->shared_consts_size = 8;
+         compiler->geom_shared_consts_size_quirk = 16;
+      } else {
+         /* A7XX TODO: properly use new shared consts mechanism */
+         compiler->shared_consts_base_offset = -1;
+         compiler->shared_consts_size = 0;
+         compiler->geom_shared_consts_size_quirk = 0;
+      }
 
       compiler->has_fs_tex_prefetch = dev_info->a6xx.has_fs_tex_prefetch;
    } else {