Module: Mesa
Branch: master
Commit: cebfb3169caafddac6ea3e0e7977abe535e3bdaf
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cebfb3169caafddac6ea3e0e7977abe535e3bdaf

Author: Andreas Baierl <[email protected]>
Date:   Wed Jan 29 12:56:10 2020 +0100

lima/parser: Fix RSW depth test parsing

Reviewed-by: Vasily Khoruzhick <[email protected]>
Signed-off-by: Andreas Baierl <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3619>

---

 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 */

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to