From 6cf965751a5bbb015d53bdec0663d6bed66a9026 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 11 Dec 2017 22:13:33 -0800 Subject: spirv: Remove a pointless assignment in SpvOpSpecConstant We re-assign later inside the bit_size switch Reviewed-by: Lionel Landwerlin --- src/compiler/spirv/spirv_to_nir.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index ebc1fefc517..6f5d3e1d64f 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -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: -- cgit v1.2.3