st/st_glsl_to_nir: call nir_lower_64bit_pack
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 14 Dec 2017 05:02:45 +0000 (16:02 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 27 Dec 2017 00:26:08 +0000 (11:26 +1100)
Fixes 56 crashes in the radeonsi nir backend.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp

index 7357eebae0cbb0015b5dd77e803ea607ee3abff1..0ff8dcd68ccda66d5245825729454d5c9a9f6893 100644 (file)
@@ -262,6 +262,7 @@ st_nir_opts(nir_shader *nir)
    do {
       progress = false;
 
+      NIR_PASS_V(nir, nir_lower_64bit_pack);
       NIR_PASS(progress, nir, nir_copy_prop);
       NIR_PASS(progress, nir, nir_opt_remove_phis);
       NIR_PASS(progress, nir, nir_opt_dce);