[Mesa-dev] [PATCH 05/11] spirv: Remove a pointless assignment in SpvOpSpecConstant

Jason Ekstrand jason at jlekstrand.net
Sun Dec 17 05:46:15 UTC 2017


We re-assign later inside the bit_size switch
---
 src/compiler/spirv/spirv_to_nir.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 9a67690..208ec95 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:
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list