gallivm/sample: add multisample support for texel fetch
authorDave Airlie <airlied@redhat.com>
Mon, 9 Mar 2020 23:38:07 +0000 (09:38 +1000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 6 May 2020 06:20:37 +0000 (06:20 +0000)
commitc2545c9b15c98049e43904563c52079940bc4ee3
treea539da6c36d0aff697c460e34f3d2a6a0bed29f9
parentb6a20804ad5afb401f1d86dc28460e922d009588
gallivm/sample: add multisample support for texel fetch

This adds a new callback to get the stride between the per-sample
images, adds a new value for the per-sample index to lookup,
and a flag to use multisampling.

gallivm/sample: add num samples interface for dynamic samplers

This will be used for getting number of samples in jit code.

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