microsoft/clc: Parse SPIR-V specialization consts into metadata
authorJesse Natalie <jenatali@microsoft.com>
Mon, 19 Apr 2021 14:09:58 +0000 (07:09 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Sep 2021 13:06:41 +0000 (13:06 +0000)
commita699844ffba20fb0bfe7103eb70938bac604748e
tree825368a0972746255482e3ea542c4e1374971991
parentc4755a7c32e66c2fb477a850d614bce847dcd8d3
microsoft/clc: Parse SPIR-V specialization consts into metadata

We need to be able to validate at the API that set specialization consts
have a valid ID and the value is the correct size.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10322>
src/microsoft/clc/clc_compiler.c
src/microsoft/clc/clc_compiler.h
src/microsoft/clc/clc_helpers.cpp
src/microsoft/clc/clc_helpers.h