ac: fix texture query LOD for 1D textures on GFX9
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 25 Apr 2018 16:15:52 +0000 (18:15 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 27 Apr 2018 09:15:35 +0000 (11:15 +0200)
commitd38425ce872c4a00cfb691ae9dceca6a07afc516
treefdac8906e1584b42cdfe9abe6f569e0f8b5731bc
parent3e691279396c5ff2aa485a55d4248194b8a64028
ac: fix texture query LOD for 1D textures on GFX9

1D textures are allocated as 2D which means we only need
one coordinate for texture query LOD.

Fixes: 625dcbbc456 ("amd/common: pass address components individually to
ac_build_image_intrinsic")
Cc: 18.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_nir_to_llvm.c