From: Samuel Iglesias Gonsálvez Date: Mon, 20 Nov 2017 11:05:31 +0000 (+0100) Subject: spirv: allow specialization constants with bitsize different than 32 bits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67ec314347ed03738cb4eece64c7b25b4ab7d3c8;p=mesa.git spirv: allow specialization constants with bitsize different than 32 bits Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Ian Romanick --- diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index d321d1a30d7..c6efefb26f7 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -1585,7 +1585,6 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode, vtn_value(b, w[4 + i], vtn_value_type_constant)->constant; unsigned j = swap ? 1 - i : i; - vtn_assert(bit_size == 32); src[j] = c->values[0]; }