gallivm: add sample id/pos intrinsic support
authorDave Airlie <airlied@redhat.com>
Thu, 19 Mar 2020 04:04:47 +0000 (14:04 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:37 +0000 (06:20 +0000)
commitd89499063bd96bcc5d7d9239a1da43bf568c11fa
treecb94704cd1fddc6f9e668040ccb7a75351d482c1
parent455c8e35842b6e149d5d390ab9692e214db63662
gallivm: add sample id/pos intrinsic support

The sample position is looked up in an incoming array using the
sample id.

(These are mostly for ARB_sample_shading support)

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4122>
src/gallium/auxiliary/gallivm/lp_bld_nir.c
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h