intel/compiler: add setup_imm_(u)b helpers
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 27 Jul 2018 11:38:38 +0000 (13:38 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Wed, 1 Aug 2018 06:08:15 +0000 (08:08 +0200)
commit7e6c8b0cb75f41de18d3f2e7f91d6eb2522e939f
tree3228171927300c196938fd982fbf499033fcfe1d
parentbd56e117ff8c4565388717cdfd30cf256c71c6cf
intel/compiler: add setup_imm_(u)b helpers

The hardware doesn't support byte immediates, so similar to setup_imm_df()
for doubles, these helpers work by loading the constant value into a
VGRF.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_nir.cpp