clover/spirv: rework handling of spirv extensions
authorKarol Herbst <kherbst@redhat.com>
Sat, 15 Aug 2020 11:19:52 +0000 (13:19 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 19:48:12 +0000 (19:48 +0000)
commite9ddb9b2ae89bb8811ac154d18d336c05d02b932
treec2f57d9d60fd3242ef9a74745e17e708c2ff52cd
parent1cfbc5cff5907aa690d7c5f6514af34c438c25a6
clover/spirv: rework handling of spirv extensions

What extensions we support depends on spirv_to_nir but it doesn't give us a
list. So hardcode one and add extensions we know we support and hit in the
wild.

v2: move into spirv lib

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5038>
src/gallium/frontends/clover/spirv/invocation.cpp
src/gallium/frontends/clover/spirv/invocation.hpp