diff options
author | Jason Ekstrand <[email protected]> | 2017-12-11 22:13:33 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-01-08 14:57:44 -0800 |
commit | 6cf965751a5bbb015d53bdec0663d6bed66a9026 (patch) | |
tree | fb0b4ecd98ba2ee6334f5cd43a67c0b81dd9b3ce /src | |
parent | f13a5cff723eb9a7baf5850fdbf8d7ebefbb1677 (diff) |
spirv: Remove a pointless assignment in SpvOpSpecConstant
We re-assign later inside the bit_size switch
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/spirv/spirv_to_nir.c | 1 |
1 files changed, 0 insertions, 1 deletions
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: |