Mesa (master): spirv: Remove a pointless assignment in SpvOpSpecConstant
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Mon Jan 8 23:16:06 UTC 2018
Module: Mesa
Branch: master
Commit: 6cf965751a5bbb015d53bdec0663d6bed66a9026
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6cf965751a5bbb015d53bdec0663d6bed66a9026
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Mon Dec 11 22:13:33 2017 -0800
spirv: Remove a pointless assignment in SpvOpSpecConstant
We re-assign later inside the bit_size switch
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
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 ebc1fefc51..6f5d3e1d64 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:
More information about the mesa-commit
mailing list