pan/bi: Print blend descriptor source properly

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
Boris Brezillon
2020-10-17 11:22:56 +02:00
committed by Marge Bot
parent 74c158011d
commit e2d6156742
+3
View File
@@ -109,6 +109,9 @@ bi_print_index(FILE *fp, bi_instruction *ins, unsigned index, unsigned s)
fprintf(fp, "#0x%" PRIx64, bi_get_immediate(ins, s));
else if (index & BIR_INDEX_ZERO)
fprintf(fp, "#0");
else if (index & BIR_INDEX_BLEND)
fprintf(fp, "blend_descriptor_%u.%c", ins->blend_location,
(index & ~BIR_INDEX_BLEND) == BIFROST_SRC_FAU_HI ? 'y' : 'x');
else
fprintf(fp, "#err");
}