From: Ian Romanick Date: Mon, 24 Jun 2019 21:49:17 +0000 (-0700) Subject: nir/search: Log Boolean constants instead of asserting X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cae1af4339e4327f4cce106c534c101f09276382;p=mesa.git nir/search: Log Boolean constants instead of asserting Reviewed-by: Connor Abbott --- diff --git a/src/compiler/nir/nir_search.c b/src/compiler/nir/nir_search.c index 2179ca0a311..1f68f78afa3 100644 --- a/src/compiler/nir/nir_search.c +++ b/src/compiler/nir/nir_search.c @@ -561,6 +561,9 @@ MAYBE_UNUSED static void dump_value(const nir_search_value *val) case nir_type_uint: printf("0x%"PRIx64, sconst->data.u); break; + case nir_type_bool: + printf("%s", sconst->data.u != 0 ? "True" : "False"); + break; default: unreachable("bad const type"); }