diff options
author | Andreas Baierl <ichgeh@imkreisrum.de> | 2020-01-29 12:56:10 +0100 |
---|---|---|
committer | Andreas Baierl <ichgeh@imkreisrum.de> | 2020-02-07 09:26:32 +0100 |
commit | cebfb3169caafddac6ea3e0e7977abe535e3bdaf (patch) | |
tree | ba79abddfcfe248da7a73fd7b3e8e9e3c5225fe5 /src | |
parent | eaa0784fd32a6189b6ad25b72365932b4ec15bc7 (diff) |
lima/parser: Fix RSW depth test parsing
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/lima/lima_parser.c | 10 |
1 files 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 */ |