summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_variables.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-01-12 10:57:28 -0600
committerJason Ekstrand <[email protected]>2019-03-05 10:06:50 -0600
commit9f7ee4f8e5b2aa492804367dd64fd5497cb23d1d (patch)
tree2faf5c82242a275e780bf8b9d119a7da15194f4e /src/compiler/spirv/vtn_variables.c
parentf1dbc7e97d3dcb2104b9438d32cace9529575208 (diff)
spirv: Use the generic dereference function for OpArrayLength
With the new deref changes, the old pointer_offset version may not be the right one to call. Just call the generic one and let it sort it out. Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_variables.c')
-rw-r--r--src/compiler/spirv/vtn_variables.c2
1 files changed, 1 insertions, 1 deletions
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);
}