From: Andreas Baierl Date: Fri, 3 Jan 2020 20:56:56 +0000 (+0100) Subject: lima/parser: Fix VS cmd stream parser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ad1896ab8a0ec07b9cc54f7316291a3e476f431;p=mesa.git lima/parser: Fix VS cmd stream parser prefetch is int, not bool. Reviewed-by: Qiang Yu Signed-off-by: Andreas Baierl --- diff --git a/src/gallium/drivers/lima/lima_parser.c b/src/gallium/drivers/lima/lima_parser.c index 8850a284a0d..f82ae0a2c2a 100644 --- a/src/gallium/drivers/lima/lima_parser.c +++ b/src/gallium/drivers/lima/lima_parser.c @@ -71,8 +71,8 @@ parse_vs_draw(FILE *fp, uint32_t *value1, uint32_t *value2) static void parse_vs_shader_info(FILE *fp, uint32_t *value1, uint32_t *value2) { - fprintf(fp, "\t/* SHADER_INFO: prefetch: %s, size: %d */\n", - (*value1 & 0x00100000) ? "enabled" : "disabled", + fprintf(fp, "\t/* SHADER_INFO: prefetch: %d, size: %d */\n", + (*value1 & 0xfff00000) >> 20, (((*value1 & 0x000fffff) >> 10) + 1) << 4); }