aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-01-04 18:04:13 -0800
committerMatt Turner <[email protected]>2015-01-08 15:38:16 -0800
commit7f813bf53d1c728c888ceffae2140f32697b8ffd (patch)
tree7905a09e413b76787af5ce3e59bd5e0261ca1833 /src/mesa
parentdf461ac952859a3608b93651fbc4160883b2dd99 (diff)
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.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cfg.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}