Mesa (master): nir/search: Log Boolean constants instead of asserting

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jun 29 02:07:33 UTC 2019


Module: Mesa
Branch: master
Commit: cae1af4339e4327f4cce106c534c101f09276382
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cae1af4339e4327f4cce106c534c101f09276382

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Jun 24 14:49:17 2019 -0700

nir/search: Log Boolean constants instead of asserting

Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>

---

 src/compiler/nir/nir_search.c | 3 +++
 1 file changed, 3 insertions(+)

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");
       }




More information about the mesa-commit mailing list