i965/fs: Add and use get_nir_src_imm().
authorMatt Turner <mattst88@gmail.com>
Wed, 4 May 2016 22:10:25 +0000 (15:10 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 20 May 2016 00:27:49 +0000 (17:27 -0700)
commit07353599e07529e98494057f556b9d96c1df5cfd
tree51fac5edb651b49ed9c99cd741f829a46b52f909
parent8bf549389914e94e4d075c3e2a161d53d3ed9675
i965/fs: Add and use get_nir_src_imm().

The next patch wants to inspect the LOD argument and do something
different if it's 0.0f. But at that point we've emitted a MOV for it and
we just have a register to look at.

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