Mesa (master): lima/parser: Fix rsw parser

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jan 5 03:25:49 UTC 2020


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

Author: Andreas Baierl <ichgeh at imkreisrum.de>
Date:   Fri Jan  3 22:26:35 2020 +0100

lima/parser: Fix rsw parser

Drop assert as it is not necessary and used wrong anyway.

Reviewed-by: Qiang Yu <yuq825 at gmail.com>
Signed-off-by: Andreas Baierl <ichgeh at imkreisrum.de>

---

 src/gallium/drivers/lima/lima_parser.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/lima/lima_parser.c b/src/gallium/drivers/lima/lima_parser.c
index 2becad8c121..8850a284a0d 100644
--- a/src/gallium/drivers/lima/lima_parser.c
+++ b/src/gallium/drivers/lima/lima_parser.c
@@ -24,7 +24,6 @@
 
 #include "util/u_math.h"
 
-#include <assert.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <string.h>
@@ -522,7 +521,6 @@ parse_rsw(FILE *fp, uint32_t *value, int i, uint32_t *helper)
               *value & 0xffffffe0, *value & 0x0000001f);
       break;
    case 10: /* VARYING TYPES */
-      assert(*helper);
       fprintf(fp, "(1): ");
       int val, j;
       /* 0 - 5 */




More information about the mesa-commit mailing list