From f48136e9c5a72f97f4035d64aae00d9dfc0cdb67 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 22 Aug 2019 09:02:48 -0700 Subject: [PATCH] pan/decode: Downgrade shader property mismatch to warning 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 --- src/panfrost/pandecode/decode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panfrost/pandecode/decode.c b/src/panfrost/pandecode/decode.c index 96afc07522a..d6b5404de10 100644 --- a/src/panfrost/pandecode/decode.c +++ b/src/panfrost/pandecode/decode.c @@ -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", -- 2.30.2