pan/va: Validate FAU before packing

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>
This commit is contained in:
Alyssa Rosenzweig 2021-07-23 11:21:35 -04:00 committed by Marge Bot
parent fd1906afea
commit b8f912e547
1 changed files with 2 additions and 0 deletions

View 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);