radeonsi: rename si_create_multi_fence -> si_alloc_fence
authorMarek Olšák <marek.olsak@amd.com>
Wed, 21 Sep 2022 20:14:32 +0000 (16:14 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 18 Oct 2022 22:42:28 +0000 (22:42 +0000)
We no longer have any multi fences (gfx+sdma fence).

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19131>

src/gallium/drivers/radeonsi/si_fence.c

index ddd799c..32a1100 100644 (file)
@@ -213,7 +213,7 @@ static void si_fence_reference(struct pipe_screen *screen, struct pipe_fence_han
    *sdst = ssrc;
 }
 
-static struct si_fence *si_create_multi_fence()
+static struct si_fence *si_alloc_fence()
 {
    struct si_fence *fence = CALLOC_STRUCT(si_fence);
    if (!fence)
@@ -228,7 +228,7 @@ static struct si_fence *si_create_multi_fence()
 struct pipe_fence_handle *si_create_fence(struct pipe_context *ctx,
                                           struct tc_unflushed_batch_token *tc_token)
 {
-   struct si_fence *fence = si_create_multi_fence();
+   struct si_fence *fence = si_alloc_fence();
    if (!fence)
       return NULL;
 
@@ -387,7 +387,7 @@ static void si_create_fence_fd(struct pipe_context *ctx, struct pipe_fence_handl
 
    *pfence = NULL;
 
-   sfence = si_create_multi_fence();
+   sfence = si_alloc_fence();
    if (!sfence)
       return;
 
@@ -511,7 +511,7 @@ static void si_flush_all_queues(struct pipe_context *ctx,
          new_fence = (struct si_fence *)*fence;
          assert(new_fence);
       } else {
-         new_fence = si_create_multi_fence();
+         new_fence = si_alloc_fence();
          if (!new_fence) {
             ws->fence_reference(&gfx_fence, NULL);
             goto finish;