From 09cc736c42465c5b4ba2e970b680048339139dba Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 14 Sep 2022 22:06:56 -0400 Subject: [PATCH] asahi: Identify shared memory fields For compute kernels, this encodes how much workgroup-local memory is used ("shared memory" or "threadgroup memory" or "local memory"). This memory is partitioned by the hardware. For fragment shaders, this... encodes exactly the same thing. There is no traditional tilebuffer in AGX, instead local memory is interpreted as an imageblock, where each workgroup is a tile. This is a nifty design. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/cmdbuf.xml | 8 ++++++-- src/gallium/drivers/asahi/agx_state.c | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/asahi/lib/cmdbuf.xml b/src/asahi/lib/cmdbuf.xml index 49ffd5b5c72..2e15582023a 100644 --- a/src/asahi/lib/cmdbuf.xml +++ b/src/asahi/lib/cmdbuf.xml @@ -502,7 +502,9 @@ - + + +