i965/fs: Pass block to insert and remove functions missed earlier.
authorMatt Turner <mattst88@gmail.com>
Thu, 4 Sep 2014 06:52:26 +0000 (23:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 5 Sep 2014 16:52:50 +0000 (09:52 -0700)
commit248eaff63d9a5484df1105a0c484d20e086f5f83
treed51d3e4997bd4e5030c4aef89718e9e8ad521c66
parent6ff5bb24658c55c28e462c657816fda2d8e53a65
i965/fs: Pass block to insert and remove functions missed earlier.

Otherwise, the basic block start/end IPs don't get updated properly,
leading to a broken CFG.  This usually results in the following
assertion failure:

brw_fs_live_variables.cpp:141:
void brw::fs_live_variables::setup_def_use():
Assertion `ip == block->start_ip' failed.

Fixes KWin, WebGL demos, and a score of Piglit tests on Sandybridge and
earlier hardware.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp