Created
July 23, 2020 15:51
-
-
Save bbrezillon/a9668aa3c062db3ec4a4a7638f5c4ca4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c | |
| index 1e9b6d707e9..4c088bf6841 100644 | |
| --- a/src/compiler/spirv/vtn_variables.c | |
| +++ b/src/compiler/spirv/vtn_variables.c | |
| @@ -738,18 +738,7 @@ vtn_local_store(struct vtn_builder *b, struct vtn_ssa_value *src, | |
| nir_deref_instr *dest, enum gl_access_qualifier access, | |
| unsigned alignment) | |
| { | |
| - nir_deref_instr *dest_tail = get_deref_tail(dest); | |
| - | |
| - if (dest_tail != dest) { | |
| - struct vtn_ssa_value *val = vtn_create_ssa_value(b, dest_tail->type); | |
| - _vtn_local_load_store(b, true, dest_tail, val, access, alignment, 0); | |
| - | |
| - val->def = nir_vector_insert(&b->nb, val->def, src->def, | |
| - dest->arr.index.ssa); | |
| - _vtn_local_load_store(b, false, dest_tail, val, access, alignment, 0); | |
| - } else { | |
| - _vtn_local_load_store(b, false, dest_tail, src, access, alignment, 0); | |
| - } | |
| + _vtn_local_load_store(b, false, dest, src, access, alignment, 0); | |
| } | |
| nir_ssa_def * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment