gallivm/nir: handle non-uniform texture offsets
authorDave Airlie <airlied@redhat.com>
Fri, 10 Apr 2020 04:13:44 +0000 (14:13 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 04:12:17 +0000 (04:12 +0000)
commite168d148d76d780eda6f9aaa6c66608c4df3096c
treed059216960024260cbbf1b2107cbdb4cf87c7036
parent9172e405ef656fb26140237395abc54d9ac97e30
gallivm/nir: handle non-uniform texture offsets

The way we construt vertex/geom shaders means these can
diverge, so we have to just hammer it out manually,
there are likely optimisation opportuniities in here

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c