i965/nir/vec4: Implement load_uniform intrinsic
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 16 Jun 2015 19:55:14 +0000 (21:55 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:48 +0000 (09:40 -0700)
commite6cafb5dfdef8d8d25ee1e3375304cf35897d1f7
tree5d6abeb5228e0af304d82bee766a9950b3796e01
parente76e8caecd30799500357a45468329f033a93932
i965/nir/vec4: Implement load_uniform intrinsic

For the indirect case we need to take the index delivered by
NIR and compute the parent uniform that we are accessing (the one
that we uploaded to a surface) and the constant offset into that
surface.

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