summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_cfg.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-01-04 18:04:13 -0800
committerMatt Turner <mattst88@gmail.com>2015-01-08 15:38:16 -0800
commit7f813bf53d1c728c888ceffae2140f32697b8ffd (patch)
tree7905a09e413b76787af5ce3e59bd5e0261ca1833 /src/mesa/drivers/dri/i965/brw_cfg.cpp
parentdf461ac952859a3608b93651fbc4160883b2dd99 (diff)
downloadexternal_mesa3d-7f813bf53d1c728c888ceffae2140f32697b8ffd.zip
external_mesa3d-7f813bf53d1c728c888ceffae2140f32697b8ffd.tar.gz
external_mesa3d-7f813bf53d1c728c888ceffae2140f32697b8ffd.tar.bz2
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/drivers/dri/i965/brw_cfg.cpp')
-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 02149e2..62cc239 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();
}