asahi/decode: Check fewer zeroes after a command buffer

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:23:50 -04:00
parent 0b35a8f81a
commit a9b8731fa1

View File

@@ -392,7 +392,7 @@ agxdecode_cmd(const uint8_t *map, bool verbose)
return AGX_RECORD_LENGTH;
} else if (map[0] == 0 && map[1] == 0 && map[2] == 0xC0 && map[3] == 0x00) {
ASSERTED unsigned zero[16] = { 0 };
ASSERTED unsigned zero[4] = { 0 };
assert(memcmp(map + 4, zero, sizeof(zero)) == 0);
return STATE_DONE;
} else {