[vulkan][magma] Use magma_connection_import_semaphore2

Run-All-Tests: true

Change-Id: I88cbfb7fd34e5f804bd03174e86380ed4de73fd2
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/916952
Reviewed-by: John Bauman <jbauman@google.com>
Commit-Queue: Craig Stout <cstout@google.com>
diff --git a/src/vulkan/runtime/vk_magma_syncobj.c b/src/vulkan/runtime/vk_magma_syncobj.c
index f20be96..1f8e6bc 100644
--- a/src/vulkan/runtime/vk_magma_syncobj.c
+++ b/src/vulkan/runtime/vk_magma_syncobj.c
@@ -51,9 +51,9 @@
    magma_status_t status;
    if (initial_value && initial_value != 1) {
       assert((initial_value >> 32) == 0);
-      status = magma_connection_import_semaphore(
+      status = magma_connection_import_semaphore2(
          device->magma_connection->connection,
-         (uint32_t)initial_value, &sobj->semaphore, &sobj->id);
+         (uint32_t)initial_value, /*flags=*/0, &sobj->semaphore, &sobj->id);
    } else {
       status = magma_connection_create_semaphore(
          device->magma_connection->connection, &sobj->semaphore, &sobj->id);
@@ -163,12 +163,12 @@
    magma_semaphore_t semaphore;
    magma_semaphore_id_t id;
 
-   magma_status_t status = magma_connection_import_semaphore(
-      device->magma_connection->connection, handle, &semaphore, &id);
+   magma_status_t status = magma_connection_import_semaphore2(
+      device->magma_connection->connection, handle, /*flags=*/0, &semaphore, &id);
 
    if (status != MAGMA_STATUS_OK) {
       return vk_errorf(device, VK_ERROR_UNKNOWN,
-                       "magma_connection_import_semaphore failed: %m");
+                       "magma_connection_import_semaphore2 failed: %m");
    }
 
    magma_connection_release_semaphore(device->magma_connection->connection,