diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-03-21 18:42:58 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-22 03:32:35 +0000 |
commit | 11bccb0564d9e24e50238fb257dd6f724ec31712 (patch) | |
tree | fd737417d35ffb1969e935d863cbd6e1db6726e7 /src/panfrost/bifrost/bi_print.c | |
parent | 3f786ed10b14ca054e299679af2bfbe8a2dcd5c3 (diff) |
pan/bi: Respect shift when printing immediates
We allow packing multiple immediates in, but we were missing this in the
print.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4276>
Diffstat (limited to 'src/panfrost/bifrost/bi_print.c')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index 73de74381cc..5f53e4b98c1 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -166,7 +166,7 @@ bi_print_index(FILE *fp, bi_instruction *ins, unsigned index) else if (index & BIR_INDEX_UNIFORM) fprintf(fp, "u%u", index & ~BIR_INDEX_UNIFORM); else if (index & BIR_INDEX_CONSTANT) - fprintf(fp, "#0x%" PRIx64, ins->constant.u64); + fprintf(fp, "#0x%" PRIx64, bi_get_immediate(ins, index)); else if (index & BIR_INDEX_ZERO) fprintf(fp, "#0"); else if (index & BIR_IS_REG) |