Mesa (master): i965/cfg: Fix end_ip of last basic block.

Matt Turner mattst88 at kemper.freedesktop.org
Thu Jan 8 23:51:54 UTC 2015


Module: Mesa
Branch: master
Commit: 7f813bf53d1c728c888ceffae2140f32697b8ffd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f813bf53d1c728c888ceffae2140f32697b8ffd

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Jan  4 18:04:13 2015 -0800

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 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();
 }




More information about the mesa-commit mailing list