sw/vec_iree: Fix iree_hal_buffer_map_range API Following the change in https://github.com/google/iree/pull/7900. Use IREE_HAL_MAPPING_MODE_SCOPED for the output mapping access. Change-Id: Ia2b1f768eb4933bf00c7e0b64c13654c9adb5510
diff --git a/samples/util/util.c b/samples/util/util.c index 2a0bec5..cb674a0 100644 --- a/samples/util/util.c +++ b/samples/util/util.c
@@ -154,7 +154,8 @@ if (iree_status_is_ok(result)) { result = iree_hal_buffer_map_range( iree_hal_buffer_view_buffer(ret_buffer_view), - IREE_HAL_MEMORY_ACCESS_READ, 0, IREE_WHOLE_BUFFER, &mapped_memory); + IREE_HAL_MAPPING_MODE_SCOPED, IREE_HAL_MEMORY_ACCESS_READ, 0, + IREE_WHOLE_BUFFER, &mapped_memory); } if (iree_status_is_ok(result)) { result = check_output_data(model, &mapped_memory, index_output);