pan/decode: Calm an assert to a pandecode error
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 25 Feb 2020 22:29:55 +0000 (17:29 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 00:03:50 +0000 (00:03 +0000)
We'd like to see what the problem actually was...

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4025>

src/panfrost/pandecode/decode.c

index e5d77c9621ba28b4b5c4662431191b8bd02d72ec..2b69b2e92af4b47a8e4eda2d5bb2bb30434c6d32 100644 (file)
@@ -2057,8 +2057,8 @@ pandecode_shader_prop(const char *name, unsigned claim, signed truth, bool fuzzy
         if (claim == truth)
                 return;
 
-        if (fuzzy)
-                assert(truth >= 0);
+        if (fuzzy && (truth < 0))
+                pandecode_msg("XXX: fuzzy %s, claimed %d, expected %d\n", name, claim, truth);
 
         if ((truth >= 0) && !fuzzy) {
                 pandecode_msg("%s: expected %s = %d, claimed %u\n",