From ba0c0a186de65869030e80efeab6cf374c0911b9 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 24 Sep 2014 16:05:50 -0700 Subject: [PATCH] i965/vec4: Call calculate_cfg() in test programs to avoid crashing. Reported-by: Mark Janes --- src/mesa/drivers/dri/i965/test_vec4_copy_propagation.cpp | 1 + src/mesa/drivers/dri/i965/test_vec4_register_coalesce.cpp | 1 + 2 files changed, 2 insertions(+) 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) { -- 2.30.2