spirv: Implement SPV_KHR_non_semantic_info
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 16 Sep 2019 21:07:00 +0000 (14:07 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 20 Dec 2019 06:49:39 +0000 (22:49 -0800)
commit4fbc99c1244555eee306053f4757d8bf6d37e2df
tree2d67ddd268ccca33dd0facf498440937d621b954
parent13adce28455daab3906215aa8d5d473f57cc2e27
spirv: Implement SPV_KHR_non_semantic_info

Do nothing for OpExtInst from extended instruction sets that name
start with "NonSemantic.".

Since they can be used within the "preamble" to annotate global
decorations, also don't stop iterating when one of them is found.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3154>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3154>
src/compiler/spirv/spirv_to_nir.c