gallivm: don't cache shaders that use fetch functions.
authorDave Airlie <airlied@redhat.com>
Thu, 14 May 2020 05:23:48 +0000 (15:23 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Jun 2020 20:05:40 +0000 (06:05 +1000)
commit1b2e345110ef4f3e56934c0444e37ec9ebdc4bdd
tree3367ed260dd6f1b5cc9e49a847c811dcb70998b6
parent6c0c61cb48e87d9b0fc545cf30016d3947a47b6a
gallivm: don't cache shaders that use fetch functions.

This needs to be reworked, but it's a bit messy as we have to store
all the fetch pointers to be added as globals later once gallivm
has been initialised further. For now just refuse to cache shaders
that hit these paths (mainly ETC1 and BPTC).

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