spirv: Use a single path for OpSpecConstantOp of OpVectorShuffle
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 6 Jun 2019 15:09:01 +0000 (10:09 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 19 Jun 2019 21:05:54 +0000 (21:05 +0000)
commit96bb9c9277383ddcd5920d066bdfec4aa009d733
tree44fe4f38d4028afc32b0698d7f2d40347225637c
parent280e5442e5d98a4967a35a5c1cadf5a1f786af6a
spirv: Use a single path for OpSpecConstantOp of OpVectorShuffle

Now that nir_const_value is a scalar, there's no reason why we need
multiple paths here and it's just extra paths to keep working.  While
we're here, we also add a vtn_fail_if check that component indices are
in-bounds.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/spirv_to_nir.c