Mesa (main): asahi: Reserve more space to stop a command buffer
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jul 11 18:58:29 UTC 2021
Module: Mesa
Branch: main
Commit: 0eb4a4dd7950c98e1d6fa102c366a48e042ed427
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0eb4a4dd7950c98e1d6fa102c366a48e042ed427
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date: Sat Jul 10 11:24:32 2021 -0400
asahi: Reserve more space to stop a command buffer
Let's be safer.
Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
---
src/gallium/drivers/asahi/agx_pipe.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c
index 8142508ccc1..304763114a9 100644
--- a/src/gallium/drivers/asahi/agx_pipe.c
+++ b/src/gallium/drivers/asahi/agx_pipe.c
@@ -411,10 +411,7 @@ agx_flush(struct pipe_context *pctx,
return;
/* Finalize the encoder */
- uint8_t stop[] = {
- 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, // Stop
- };
-
+ uint8_t stop[5 + 64] = { 0x00, 0x00, 0x00, 0xc0, 0x00 };
memcpy(ctx->batch->encoder_current, stop, sizeof(stop));
/* Emit the commandbuffer */
More information about the mesa-commit
mailing list