i965/nir/vec4: Implement load_const intrinsic
authorEduardo Lima Mitev <elima@igalia.com>
Wed, 1 Jul 2015 14:10:49 +0000 (16:10 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commitf7152525374015594e037fa11bb64e1c7174829b
tree12b8e00c93d33956f9f5461a8b62b89e39b3fe68
parenta5a3287f7392356386aa305c791d94b6d5dde6cc
i965/nir/vec4: Implement load_const intrinsic

Similar to fs_nir backend, a nir_local_values map will be filled with
newly allocated registers as the load_const instrinsic instructions are
processed. Later, get_nir_src() will fetch the registers from this map
for sources that are ssa.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp