spirv: Refactor Op[Spec]ConstantComposite and add better validation

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 8 January 2018 22:57 EST

Now that vtn_base_type is a real and full base type, we can switch on that instead of the GLSL base type which is a lot fewer cases in our switch.

936f49268e spirv: Refactor Op[Spec]ConstantComposite and add better validation
src/compiler/spirv/spirv_to_nir.c | 68 ++++++++++++++++++---------------------
1 file changed, 32 insertions(+), 36 deletions(-)

Upstream: cgit.freedesktop.org


  • Share