spirv: allow specialization constants with bitsize different than 32 bits
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 20 Nov 2017 11:05:31 +0000 (12:05 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 7 Dec 2017 09:19:34 +0000 (10:19 +0100)
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/spirv/spirv_to_nir.c

index d321d1a30d7ac0a935a4a6af22e38424d2ee15be..c6efefb26f73a52892d5d1682d82a73ba2ccba3e 100644 (file)
@@ -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];
          }