diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index f2bf09034ca..9a57438a888 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -2454,7 +2454,7 @@ vtn_handle_variables(struct vtn_builder *b, SpvOp opcode, struct vtn_access_chain chain = { .length = 0, }; - ptr = vtn_ssa_offset_pointer_dereference(b, ptr, &chain); + ptr = vtn_pointer_dereference(b, ptr, &chain); vtn_assert(ptr->block_index); }