ac: fix the number of coordinates for ac_image_get_lod and arrays
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 23 Apr 2018 15:05:10 +0000 (17:05 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 23 Apr 2018 19:48:38 +0000 (21:48 +0200)
commitd136a5fad9c7e67c1362453388914ecc60420883
tree587ae3f2ec64c51ce9e5a7256deb53ecf63837ea
parent2964e16e5158bfba1fa4da05f12d87ab584c2a1a
ac: fix the number of coordinates for ac_image_get_lod and arrays

This fixes crashes for the following CTS:
dEQP-VK.glsl.texture_functions.query.texturequerylod.*

Cubemaps are the same as 2D arrays.

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_llvm_build.c