radv/ac: add support for multi sample image coords
authorDave Airlie <airlied@redhat.com>
Fri, 30 Dec 2016 04:24:10 +0000 (14:24 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Jan 2017 02:59:31 +0000 (12:59 +1000)
commitada66480b29be5730b217943e626b246ce6c67fd
tree92eef30b893c702d6972e3f8e9508c8c82456571
parent41b1d9a558d620df339738aa4aa569fe14298b83
radv/ac: add support for multi sample image coords

This just adds the nir->llvm support, enabling
the extension causes some failures on llvm 3.9 at least,
but this code seems fine.

NIR passes the sampler in src[1].x, and we LLVM/SI requires
it as the last parameters in the coords (coord[2] for 2D,
coord[3] for 2DArray).

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c