From cebfb3169caafddac6ea3e0e7977abe535e3bdaf Mon Sep 17 00:00:00 2001 From: Andreas Baierl Date: Wed, 29 Jan 2020 12:56:10 +0100 Subject: [PATCH] lima/parser: Fix RSW depth test parsing Reviewed-by: Vasily Khoruzhick Signed-off-by: Andreas Baierl Part-of: --- src/gallium/drivers/lima/lima_parser.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/lima/lima_parser.c b/src/gallium/drivers/lima/lima_parser.c index 87f8a47f50a..9eb59e9c202 100644 --- a/src/gallium/drivers/lima/lima_parser.c +++ b/src/gallium/drivers/lima/lima_parser.c @@ -467,12 +467,14 @@ parse_rsw(FILE *fp, uint32_t *value, int i, uint32_t *helper) break; case 3: /* DEPTH TEST */ if ((*value & 0x00000001) == 0x00000001) - fprintf(fp, ": depth test enabled && writes allowed"); + fprintf(fp, "(1): depth test enabled && writes allowed"); else - fprintf(fp, ": depth test disabled || writes not allowed"); + fprintf(fp, "(1): depth test disabled || writes not allowed"); - fprintf(fp, ", PIPE_FUNC_%d", *value & 0x0000000e); - fprintf(fp, ", offset_scale: %d", *value & 0xffff0000); + fprintf(fp, "\n\t\t\t\t\t\t/* %s(2)", render_state_infos[i].info); + fprintf(fp, ": PIPE_FUNC_%d", (*value & 0x0000000e) >> 1); + fprintf(fp, ", offset_scale: %d", (*value & 0x00ff0000) >> 16); + fprintf(fp, ", offset_units: %d", (*value & 0xff000000) >> 24); fprintf(fp, ", unknown bits 4-15: 0x%08x */\n", *value & 0x0000fff0); break; case 4: /* DEPTH RANGE */ -- 2.30.2