OSDN Git Service

intel/fs: Use the new nir_src_is_const and friends
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 20 Oct 2018 14:55:28 +0000 (09:55 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Nov 2018 16:09:20 +0000 (10:09 -0600)
commit344cfe69809757be354fe129d7a849408c335dbe
tree19fb43062a9ea47b4830ffc01f49ef9fd28e6158
parent6b2918709ab785be53607ff65ae203b2e88594b4
intel/fs: Use the new nir_src_is_const and friends

As of this commit, all uses of const sources either go through a
nir_src_as_<type> helper which handles bit sizes correctly or else are
accompanied by a nir_src_bit_size() == 32 assertion to assert that we
have the size we think we have.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs_nir.cpp