[Mesa-dev] [PATCH 2/4] gallium/ttn: Validate our shader after we generate it.

Eric Anholt eric at anholt.net
Mon Apr 13 13:36:47 PDT 2015


There's a bunch of lovely code to sanity-check us in ways that we might
not catch immediately (or as obviously) through piglit fails, so let's use
it.
---
 src/gallium/auxiliary/nir/tgsi_to_nir.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 9d988b06..43f070c 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -1656,6 +1656,8 @@ tgsi_to_nir(const void *tgsi_tokens,
 
    ttn_add_output_stores(c);
 
+   nir_validate_shader(s);
+
    ralloc_free(c);
    return s;
 }
-- 
2.1.4



More information about the mesa-dev mailing list