ac/nir: fix image dimension for subpass attachments
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Apr 2018 16:06:43 +0000 (18:06 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Apr 2018 16:44:51 +0000 (18:44 +0200)
commit8f13975713a7a7b8d625e3561a7fc9ce202ac64b
tree54c96947de60145be234192d0fdfab5c635d4c6c
parente1df849c3cfe0c9da7d2f62fc78be94632949903
ac/nir: fix image dimension for subpass attachments

For subpass attachments we need one more coordinate with
the layer, so make them array types.

This fixes a bunch of CTS fails with RADV.

Fixes: 24fb3e6aa1 ("ac/nir: use ac_build_image_opcode for image intrinsics")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c