gallivm: add indirect texture switch statement builder.
authorDave Airlie <airlied@redhat.com>
Tue, 19 May 2020 02:16:34 +0000 (12:16 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 04:12:16 +0000 (04:12 +0000)
commit28f906ad913f7dbd2fff2d4226191d9e1a15273d
tree5e7eee5986b51b5741bb26bc2fdb418e50d0257e
parent8b15a08ebdefd9aff8cd0f8b727052515f61a4a0
gallivm: add indirect texture switch statement builder.

This adds the apis to add an indirect accessor for arrays
of textures, using an LLVM switch statement and per-texture
sampler functions.

It also adds the indexer to the sampler parameters

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