i965/fs: Don't use brw_imm_* unnecessarily.
authorMatt Turner <mattst88@gmail.com>
Thu, 17 Apr 2014 18:53:22 +0000 (11:53 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 26 May 2014 03:16:41 +0000 (20:16 -0700)
commitc938be8ad272a06bc0e91c4e718b61a0c5de400e
treebbf8f8237df73730c5854ceaa0d359a595c51a7d
parent7a63bd960c33127dbce0e5802a7cda96dc011104
i965/fs: Don't use brw_imm_* unnecessarily.

Using brw_imm_* creates a source with file=HW_REG, and the scheduler
inserts barrier dependencies when it sees HW_REG. None of these are
hardware-registers in the sense that they're special and scheduling
shouldn't touch them. A few of the modified cases already have HW_REGs
for other sources, so it won't allow extra flexibility in some cases.

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