asahi: Reserve more space to stop a command buffer

Let's be safer.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11815>
This commit is contained in:
Alyssa Rosenzweig 2021-07-10 11:24:32 -04:00
parent a9b8731fa1
commit 0eb4a4dd79
1 changed files with 1 additions and 4 deletions

View File

@ -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 */