From 5a9136a0ef12e2c066f9b22371eb80ab75e221db Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Fri, 10 Nov 2023 14:33:52 +0900 Subject: [PATCH] asahi: Add extra CDM barrier bit for G13X I don't know if we need the other bits yet. I'm assuming the logic here is the same as we used to use for VDM... Signed-off-by: Asahi Lina Part-of: --- src/gallium/drivers/asahi/agx_state.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index a9b6adecad9..0629af245af 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -4104,6 +4104,15 @@ agx_launch(struct agx_batch *batch, const struct pipe_grid_info *info, cfg.unk_5 = true; cfg.unk_6 = true; cfg.unk_8 = true; + // cfg.unk_11 = true; + // cfg.unk_20 = true; + if (dev->params.num_clusters_total > 1) { + // cfg.unk_24 = true; + if (dev->params.gpu_generation == 13) { + cfg.unk_4 = true; + // cfg.unk_26 = true; + } + } } out += AGX_CDM_BARRIER_LENGTH;