i965/fs: Call calculate_cfg() before optimize().
authorMatt Turner <mattst88@gmail.com>
Fri, 13 Feb 2015 18:34:39 +0000 (10:34 -0800)
committerMatt Turner <mattst88@gmail.com>
Sun, 15 Feb 2015 20:24:11 +0000 (12:24 -0800)
commitfa124a337ca10d2c5d2d81a89dc8c21a7ba2f58b
treee7f2fa5b2e2f84af6d147be0cdd5fb98af211b93
parenteb47d0efd39d73d4388389d6c0ebe458160f79fa
i965/fs: Call calculate_cfg() before optimize().

The CFG is fundamental to the FS IR, not merely a piece of optimization.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_fs.cpp