i965: Move more code into codegen-branch of the fs_visitor::run() if statement
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 14 Nov 2014 00:28:17 +0000 (16:28 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 15 Nov 2014 03:38:05 +0000 (19:38 -0800)
commit5c4efc644e731178a07bb41c55cf96425166993f
tree1eefaff1f6865286090e49c187ad1d972c82e589
parentf2bb655ac75d04dc033546479aabbbf4112cc54e
i965: Move more code into codegen-branch of the fs_visitor::run() if statement

These last few operations all only apply when we've actually generated
code, optimized and allocated registers.  The dummy and the repclear
shaders don't need the gen4 send workaround, and don't spill.  This
means we can move these lines into the else-branch, which will make
the following refactoring easier.

v2 (Ken): Rebase on master, which removed the uncompressed stack.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp