gallivm/sample: pass indirect offset into texture/image units
authorDave Airlie <airlied@redhat.com>
Mon, 15 Jun 2020 07:00:20 +0000 (17:00 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jul 2020 04:12:17 +0000 (04:12 +0000)
commit3b973eab73f1e49c5953cfe2c39236a64b8c7610
tree3428f5159da1c3d3d7e4cc1049f40bbb952076ed
parente168d148d76d780eda6f9aaa6c66608c4df3096c
gallivm/sample: pass indirect offset into texture/image units

This isn't needed for the basic indirect code, but it is needed for
texture size/image size unfortunately. They could be done with a super
switch, but it seems simple to query them.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3778>
src/gallium/auxiliary/draw/draw_llvm_sample.c
src/gallium/auxiliary/gallivm/lp_bld_sample.c
src/gallium/auxiliary/gallivm/lp_bld_sample.h
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
src/gallium/drivers/llvmpipe/lp_tex_sample.c
src/gallium/drivers/swr/swr_tex_sample.cpp