From 034d52643cf3bf7ea91e117ce6e0c95db42ad415 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 23 May 2022 12:32:37 -0400 Subject: [PATCH] asahi: Correct bind fragment pipeline size A number of structures encode their size, but we were ignoring it just for this fragment pipeline bind. Fix that. This fix might also apply to bind vertex pipeline. Unsure. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/lib/cmdbuf.xml | 3 +-- src/asahi/lib/decode.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/asahi/lib/cmdbuf.xml b/src/asahi/lib/cmdbuf.xml index 3aeaea973a9..398e06c2221 100644 --- a/src/asahi/lib/cmdbuf.xml +++ b/src/asahi/lib/cmdbuf.xml @@ -480,7 +480,7 @@ - + @@ -495,7 +495,6 @@ - diff --git a/src/asahi/lib/decode.c b/src/asahi/lib/decode.c index de67f83e493..2cf62dc3fa0 100644 --- a/src/asahi/lib/decode.c +++ b/src/asahi/lib/decode.c @@ -422,7 +422,7 @@ agxdecode_record(uint64_t va, size_t size, bool verbose) assert(size == AGX_SET_INDEX_LENGTH); DUMP_CL(SET_INDEX, map, "Set index"); } else if (tag == 0x800000) { - assert(size == (AGX_BIND_FRAGMENT_PIPELINE_LENGTH - 4)); + assert(size == AGX_BIND_FRAGMENT_PIPELINE_LENGTH); agx_unpack(agxdecode_dump_stream, map, BIND_FRAGMENT_PIPELINE, cmd); agxdecode_stateful(cmd.pipeline, "Pipeline", agxdecode_pipeline, verbose);