ac/nir_to_llvm: fix clamp shadow reference for more hardware
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 23 Jan 2019 03:58:40 +0000 (14:58 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 26 Jan 2019 01:03:24 +0000 (12:03 +1100)
commit5d66f7103f0df6b996951e65483fc5873d9b66df
tree0b763fe2008c6feec2da577b5491dc69c1627625
parent08f4a904b386f3535719dff4c224ea5cfccc92cd
ac/nir_to_llvm: fix clamp shadow reference for more hardware

Fixes the following piglit test on my VEGA and matches the behaviour in the
tgsi backend.

tests/spec/glsl-1.10/execution/samplers/glsl-fs-shadow2D-clamp-z.shader_test

Fixes: 625dcbbc4566 ("amd/common: pass address components individually to ac_build_image_intrinsic")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c