pan/decode: Downgrade shader property mismatch to warning
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 22 Aug 2019 16:02:48 +0000 (09:02 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 22 Aug 2019 19:56:35 +0000 (12:56 -0700)
If we permit more $whatever through than the shader needs, that's a bit
of a waste, but it isn't an error.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/pandecode/decode.c

index 96afc07522a1efeed16b593a21917aecedf5b86f..d6b5404de106806dd587fe0e9b2807970a5b3af9 100644 (file)
@@ -1949,7 +1949,8 @@ pandecode_shader_prop(const char *name, unsigned claim, signed truth, bool fuzzy
                 assert(truth >= 0);
 
         if ((truth >= 0) && !fuzzy) {
-                pandecode_msg("XXX: expected %s = %d, claimed %u\n",
+                pandecode_msg("%s: expected %s = %d, claimed %u\n",
+                                (truth < claim) ? "warn" : "XXX",
                                 name, truth, claim);
         } else if ((claim > -truth) && !fuzzy) {
                 pandecode_msg("XXX: expected %s <= %u, claimed %u\n",