Advertisement
Guest User

threaded_context_unwrap_sync

a guest
Sep 9th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.16 KB | None | 0 0
  1. diff --git a/src/gallium/drivers/radeonsi/si_fence.c b/src/gallium/drivers/radeonsi/si_fence.c
  2. index 186a785437..66f10887ea 100644
  3. --- a/src/gallium/drivers/radeonsi/si_fence.c
  4. +++ b/src/gallium/drivers/radeonsi/si_fence.c
  5. @@ -293,6 +293,8 @@ static boolean si_fence_finish(struct pipe_screen *screen,
  6.         struct si_multi_fence *rfence = (struct si_multi_fence *)fence;
  7.         int64_t abs_timeout = os_time_get_absolute_timeout(timeout);
  8.  
  9. +       ctx = threaded_context_unwrap_sync(ctx);
  10. +
  11.         if (!util_queue_fence_is_signalled(&rfence->ready)) {
  12.                 if (rfence->tc_token) {
  13.                         /* Ensure that si_flush_from_st will be called for
  14. @@ -373,7 +375,6 @@ static boolean si_fence_finish(struct pipe_screen *screen,
  15.                          * This means we need to flush for such fences even when we're
  16.                          * not going to wait.
  17.                          */
  18. -                       threaded_context_unwrap_sync(ctx);
  19.                         si_flush_gfx_cs(sctx,
  20.                                         (timeout ? 0 : PIPE_FLUSH_ASYNC) |
  21.                                          RADEON_FLUSH_START_NEXT_GFX_IB_NOW,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement