From a77facd4599f5dbc530c3a769c9d2345885467d2 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 28 Jun 2023 15:39:57 -0400 Subject: [PATCH] asahi: Augment PBE descriptor for software access For implementing image atomics (and multisample image writes), we need information about the image layout in the shader. It's a lot nicer to determine the image layouts on the CPU (where we have ail) and stash the results in the PBE descriptor, where we have a convenient hole to do so, rather than trying to do all the layout calculations on the GPU on the fly. Add a data structure that the driver will fill out and the image atomic lowering will consider as part of the hardware. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/cmdbuf.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/asahi/lib/cmdbuf.xml b/src/asahi/lib/cmdbuf.xml index 209d40222e5..ea1c89971d9 100644 --- a/src/asahi/lib/cmdbuf.xml +++ b/src/asahi/lib/cmdbuf.xml @@ -196,6 +196,36 @@ + + + + + + + + + + + + + + + + + + + + @@ -240,6 +270,9 @@ + + +