Mesa (main): asahi: Allocate special scratch buffers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 18 23:46:49 UTC 2021


Module: Mesa
Branch: main
Commit: 6637fbb2117787a4c3a39ae8a1ecc24eb52c4149
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6637fbb2117787a4c3a39ae8a1ecc24eb52c4149

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Nov 13 13:53:43 2021 -0500

asahi: Allocate special scratch buffers

Seem to be used for preemption.

Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13784>

---

 src/gallium/drivers/asahi/magic.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/asahi/magic.c b/src/gallium/drivers/asahi/magic.c
index fa56ede4f18..05ec6a5c8df 100644
--- a/src/gallium/drivers/asahi/magic.c
+++ b/src/gallium/drivers/asahi/magic.c
@@ -156,6 +156,9 @@ demo_cmdbuf(uint64_t *buf, size_t size,
       cfg.attachment_length = nr_attachments * AGX_IOGPU_ATTACHMENT_LENGTH;
       cfg.unknown_offset = offset_unk;
       cfg.encoder = encoder_ptr;
+
+      cfg.deflake_1 = demo_zero(pool, 0x540);
+      cfg.deflake_2 = demo_zero(pool, 0x280);
    }
 
    return total_size;



More information about the mesa-commit mailing list