diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-04-28 13:48:37 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-29 00:30:05 +0000 |
commit | 9b415bf6a037867432c72294f0f03917f3b06ae8 (patch) | |
tree | 19fa067a5ec95ce352341434430d95afcd3cdf91 /src/panfrost/bifrost/bi_print.c | |
parent | 6de01faac5a20208422fb75d22f2bd88c53f53d8 (diff) |
pan/bi: Add bitwise modifiers
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4790>
Diffstat (limited to 'src/panfrost/bifrost/bi_print.c')
-rw-r--r-- | src/panfrost/bifrost/bi_print.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c index e67a1485780..1c9c8a72a31 100644 --- a/src/panfrost/bifrost/bi_print.c +++ b/src/panfrost/bifrost/bi_print.c @@ -206,6 +206,9 @@ bi_print_src(FILE *fp, bi_instruction *ins, unsigned s) if (abs) fprintf(fp, "abs("); + if (ins->type == BI_BITWISE && ins->bitwise.src_invert[s]) + fprintf(fp, "~"); + bi_print_index(fp, ins, src, s); if (abs) @@ -378,6 +381,8 @@ bi_print_instruction(bi_instruction *ins, FILE *fp) fprintf(fp, ".loc%u", ins->blend_location); else if (ins->type == BI_TEX) fprintf(fp, ".%s", bi_tex_op_name(ins->op.texture)); + else if (ins->type == BI_BITWISE) + fprintf(fp, ".%cshift", ins->bitwise.rshift ? 'r' : 'l'); if (ins->vector_channels) fprintf(fp, ".v%u", ins->vector_channels); |