asahi: Enable explicit coherency for G14D (multi-die)
authorAsahi Lina <lina@asahilina.net>
Wed, 9 Aug 2023 11:13:39 +0000 (11:13 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Aug 2023 20:31:27 +0000 (20:31 +0000)
It turns out we do need this explicit coherency dance for G14,
but only on G14D.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>

src/gallium/drivers/asahi/agx_state.c

index 62ca046..dddaedc 100644 (file)
@@ -1621,8 +1621,9 @@ agx_compile_variant(struct agx_device *dev, struct agx_uncompiled_shader *so,
    }
 
    struct agx_shader_key base_key = {
-      .needs_g13x_coherency =
-         dev->params.gpu_generation == 13 && dev->params.num_clusters_total > 1,
+      .needs_g13x_coherency = (dev->params.gpu_generation == 13 &&
+                               dev->params.num_clusters_total > 1) ||
+                              dev->params.num_dies > 1,
    };
 
    if (nir->info.stage == MESA_SHADER_FRAGMENT)