asahi/decode: Fix decoding of draw calls

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 12:32:10 -04:00
parent ed4b3a5d17
commit 314324f320

View file

@ -409,7 +409,7 @@ agxdecode_cmd(const uint8_t *map, bool verbose)
return AGX_BIND_PIPELINE_LENGTH + 1;
} else if (map[1] == 0xc0 && map[2] == 0x61) {
DUMP_CL(DRAW, map, "Draw");
DUMP_CL(DRAW, map - 1, "Draw");
return AGX_DRAW_LENGTH;
} else if (map[1] == 0x00 && map[2] == 0x00) {
/* No need to explicitly dump the record */