i965/fs: Use brw_imm_uw().
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Nov 2015 19:28:35 +0000 (11:28 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 19 Nov 2015 19:12:24 +0000 (11:12 -0800)
commit9b978046eb1d1657060365e8dcde4aad41b50af9
tree49a9b4d1d707364be0cf7b9632e3c56ba535ed28
parent3ccc41ecfc5e9345a1c291748d8840984f7413ae
i965/fs: Use brw_imm_uw().

W/UW immediates are 16-bits, but those 16-bits must be replicated
in the high 16-bits of the 32-bit field.

Remove the useless W/UW immediate saturating code, since we'll now be
using the appropriate immediate (and W/UW immediates in the IR can now
no longer be larger than 16-bits).

Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp