From 0eb4a4dd7950c98e1d6fa102c366a48e042ed427 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 10 Jul 2021 11:24:32 -0400 Subject: [PATCH] asahi: Reserve more space to stop a command buffer Let's be safer. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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 8142508..3047631 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 */ -- 2.7.4