OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f13a5cf
)
spirv: Remove a pointless assignment in SpvOpSpecConstant
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 12 Dec 2017 06:13:33 +0000
(22:13 -0800)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/src/compiler/spirv/spirv_to_nir.c
b/src/compiler/spirv/spirv_to_nir.c
index
ebc1fef
..
6f5d3e1
100644
(file)
--- 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: