mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nir/search: Log Boolean constants instead of asserting
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
8d6b35fffd
commit
cae1af4339
1 changed files with 3 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue