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 <lionel.g.landwerlin@intel.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user