asahi: Allocate special scratch buffers

Seem to be used for preemption.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13784>
This commit is contained in:
Alyssa Rosenzweig 2021-11-13 13:53:43 -05:00 committed by Marge Bot
parent 30433ae716
commit 6637fbb211

View File

@ -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;