Module: Mesa
Branch: main
Commit: 4c4d6982081d78c7ad79d23b270fcf8ca7a91a90
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c4d6982081d78c7ad79d23b270fcf8ca7a91a90

Author: Marek Olšák <[email protected]>
Date:   Wed Sep 21 16:14:32 2022 -0400

radeonsi: rename si_create_multi_fence -> si_alloc_fence

We no longer have any multi fences (gfx+sdma fence).

Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19131>

---

 src/gallium/drivers/radeonsi/si_fence.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_fence.c 
b/src/gallium/drivers/radeonsi/si_fence.c
index ddd799ccd11..32a1100b3c2 100644
--- a/src/gallium/drivers/radeonsi/si_fence.c
+++ b/src/gallium/drivers/radeonsi/si_fence.c
@@ -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;

Reply via email to