From 7f813bf53d1c728c888ceffae2140f32697b8ffd Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 4 Jan 2015 18:04:13 -0800 Subject: [PATCH] i965/cfg: Fix end_ip of last basic block. start_ip and end_ip are inclusive. Increases instruction counts in 64 shaders in shader-db, likely indicative of them previously being misoptimized. --- src/mesa/drivers/dri/i965/brw_cfg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_cfg.cpp b/src/mesa/drivers/dri/i965/brw_cfg.cpp index 02149e2e3b1..62cc23970d6 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.cpp +++ b/src/mesa/drivers/dri/i965/brw_cfg.cpp @@ -313,7 +313,7 @@ cfg_t::cfg_t(exec_list *instructions) } } - cur->end_ip = ip; + cur->end_ip = ip - 1; make_block_array(); } -- 2.30.2