lima/parser: Fix VS cmd stream parser
authorAndreas Baierl <ichgeh@imkreisrum.de>
Fri, 3 Jan 2020 20:56:56 +0000 (21:56 +0100)
committerQiang Yu <yuq825@gmail.com>
Sun, 5 Jan 2020 03:08:01 +0000 (03:08 +0000)
prefetch is int, not bool.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
src/gallium/drivers/lima/lima_parser.c

index 8850a284a0d9b124ea779a61696e7a9779b8ae41..f82ae0a2c2a23da672daa36b0a57dd7900f43c8f 100644 (file)
@@ -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);
 }