Mesa (master): lima/parser: Fix VS cmd stream parser
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jan 5 03:25:49 UTC 2020
Module: Mesa
Branch: master
Commit: 7ad1896ab8a0ec07b9cc54f7316291a3e476f431
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ad1896ab8a0ec07b9cc54f7316291a3e476f431
Author: Andreas Baierl <ichgeh at imkreisrum.de>
Date: Fri Jan 3 21:56:56 2020 +0100
lima/parser: Fix VS cmd stream parser
prefetch is int, not bool.
Reviewed-by: Qiang Yu <yuq825 at gmail.com>
Signed-off-by: Andreas Baierl <ichgeh at imkreisrum.de>
---
src/gallium/drivers/lima/lima_parser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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);
}
More information about the mesa-commit
mailing list