From: Matt Turner Date: Wed, 24 Sep 2014 23:05:50 +0000 (-0700) Subject: i965/vec4: Call calculate_cfg() in test programs to avoid crashing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba0c0a186de65869030e80efeab6cf374c0911b9;p=mesa.git i965/vec4: Call calculate_cfg() in test programs to avoid crashing. Reported-by: Mark Janes --- diff --git a/src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp index 6925af5fccf..992cb60f1fc 100644 --- a/src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp +++ b/src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp @@ -116,6 +116,7 @@ copy_propagation(vec4_visitor *v) v->dump_instructions(); } + v->calculate_cfg(); v->opt_copy_propagation(); if (print) { diff --git a/src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp b/src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp index 16e6270a044..3c03f83fc26 100644 --- a/src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp +++ b/src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp @@ -119,6 +119,7 @@ _register_coalesce(vec4_visitor *v, const char *func) v->dump_instructions(); } + v->calculate_cfg(); v->opt_register_coalesce(); if (print) {