i965/vec4: Call calculate_cfg() in test programs to avoid crashing.
authorMatt Turner <mattst88@gmail.com>
Wed, 24 Sep 2014 23:05:50 +0000 (16:05 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 24 Sep 2014 23:06:41 +0000 (16:06 -0700)
Reported-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp
src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp

index 6925af5fccfdc39861ddbceee7eef1e41a7b302b..992cb60f1fc66f76fb459efc69806c5269a4e058 100644 (file)
@@ -116,6 +116,7 @@ copy_propagation(vec4_visitor *v)
       v->dump_instructions();
    }
 
+   v->calculate_cfg();
    v->opt_copy_propagation();
 
    if (print) {
index 16e6270a04427cce6db5e3a14e96f9fbdeb1a0e0..3c03f83fc26b546275911eeda4d38e20c74d9fb1 100644 (file)
@@ -119,6 +119,7 @@ _register_coalesce(vec4_visitor *v, const char *func)
       v->dump_instructions();
    }
 
+   v->calculate_cfg();
    v->opt_register_coalesce();
 
    if (print) {