pan/va: Validate FAU before packing
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 23 Jul 2021 15:21:35 +0000 (11:21 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Mar 2022 19:00:13 +0000 (19:00 +0000)
These are pre-conditions required for packing.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15223>

src/panfrost/bifrost/valhall/va_pack.c

index 95f088c..fc7fea6 100644 (file)
@@ -836,6 +836,8 @@ bi_pack_valhall(bi_context *ctx, struct util_dynarray *emission)
 {
    unsigned orig_size = emission->size;
 
+   va_validate(stderr, ctx);
+
    bi_foreach_block(ctx, block) {
       bi_foreach_instr_in_block(block, I) {
          unsigned flow = va_pack_flow(block, I);