spirv: Remove a pointless assignment in SpvOpSpecConstant
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Dec 2017 06:13:33 +0000 (22:13 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 8 Jan 2018 22:57:44 +0000 (14:57 -0800)
We re-assign later inside the bit_size switch

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/spirv/spirv_to_nir.c

index ebc1fefc5171bdc4c1774ae7daa013eb01d93cce..6f5d3e1d64f0e9533cf0f1dfb3878c1120d0329c 100644 (file)
@@ -1319,7 +1319,6 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
    }
    case SpvOpSpecConstant: {
       vtn_assert(glsl_type_is_scalar(val->type->type));
-      val->constant->values[0].u32[0] = get_specialization(b, val, w[3]);
       int bit_size = glsl_get_bit_size(val->type->type);
       switch (bit_size) {
       case 64: