aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2019-06-24 14:49:17 -0700
committerIan Romanick <[email protected]>2019-06-28 18:56:19 -0700
commitcae1af4339e4327f4cce106c534c101f09276382 (patch)
treec7b02768f1d232e08592cee6cf097c9051c6b546 /src/compiler/nir
parent8d6b35fffd70a967b143dbe670c65d25348b8f1b (diff)
nir/search: Log Boolean constants instead of asserting
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_search.c3
1 files changed, 3 insertions, 0 deletions
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");
}