summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima
diff options
context:
space:
mode:
authorAndreas Baierl <[email protected]>2020-01-13 08:58:09 +0100
committerVasily Khoruzhick <[email protected]>2020-01-13 16:11:37 +0000
commit2ce71494f104c64a088cedb8a271248549812129 (patch)
tree66c29e2166ab92c8e2c5a7625c773e096f22c1f9 /src/gallium/drivers/lima
parent440b0d6eec273728bd31d454bd1a874c2ecb9eb7 (diff)
lima/parser: Make rsw alpha blend parsing more readable
Reviewed-by: Vasily Khoruzhick <[email protected]> Signed-off-by: Andreas Baierl <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r--src/gallium/drivers/lima/lima_parser.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/lima/lima_parser.c b/src/gallium/drivers/lima/lima_parser.c
index ea126e9c247..3206e4eaf1a 100644
--- a/src/gallium/drivers/lima/lima_parser.c
+++ b/src/gallium/drivers/lima/lima_parser.c
@@ -456,11 +456,12 @@ parse_rsw(FILE *fp, uint32_t *value, int i, uint32_t *helper)
(*value & 0x00000038) >> 3); /* alpha_func */
/* add a few tabs for alignment */
fprintf(fp, "\t\t\t\t\t\t/* %s(2)", render_state_infos[i].info);
- fprintf(fp, ": rgb_src_factor %d, rbg_dst_factor %d, alpha_src_factor %d",
+ fprintf(fp, ": rgb_src_factor %d, rbg_dst_factor %d */\n",
(*value & 0x000007c0) >> 6, /* rgb_src_factor */
- (*value & 0x0000f800) >> 11, /* rgb_dst_factor */
- (*value & 0x000f0000) >> 16); /* alpha_src_factor */
- fprintf(fp, ", alpha_dst_factor %d, bits 24-27 0x%02x */\n",
+ (*value & 0x0000f800) >> 11); /* rgb_dst_factor */
+ fprintf(fp, "\t\t\t\t\t\t/* %s(3)", render_state_infos[i].info);
+ fprintf(fp, ": alpha_src_factor %d, alpha_dst_factor %d, bits 24-27 0x%02x */\n",
+ (*value & 0x000f0000) >> 16, /* alpha_src_factor */
(*value & 0x00f00000) >> 20, /* alpha_dst_factor */
(*value & 0x0f000000) >> 24); /* bits 24-27 */
break;