ac/nir: call glsl_get_sampler_dim() only once where possible
authorKai Wasserbäch <kai@dev.carbon-project.org>
Tue, 23 Jan 2018 20:14:54 +0000 (21:14 +0100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 28 Jan 2018 23:47:31 +0000 (10:47 +1100)
commit0aba967328cc058d3c1e22409f4d0a5623394e69
tree7f43b71b67a80b7b639f70dcf22503c0ead4902d
parent2af66ba7e76dabd91eec9900e36aae0e49275801
ac/nir: call glsl_get_sampler_dim() only once where possible

Changes since v1:
  * Rebased on top of e68150de263156a3f3d1b609b6506c5649967f61 and
    82adf53308c137ce0dc5f2d5da4e7cc40c5b808c.

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/amd/common/ac_nir_to_llvm.c