diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-01-04 00:19:41 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2018-01-04 01:12:09 +0100 |
commit | 79724c89f848ce606126bf2b8c669d9738c2b8ce (patch) | |
tree | 54cd98775eecbc512ec320791886a31b5db9459e /src/gallium | |
parent | c99426ea831f9e38624bbd1d2f0bc54bdfaf2b6b (diff) |
ac: rename has_sync_file to has_fence_to_handle.
sync_files are in linux since 4.7, while the amdgpu fence_to_handle
ioctl is only in 4.15.
In particular we don't need it for sync_file in radv, because
everything happens via syncobjs, which got support earlier than
fence_to_handle.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_fence.c | 4 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_fence.c b/src/gallium/drivers/radeonsi/si_fence.c index 3c4d75462af..5f320803aae 100644 --- a/src/gallium/drivers/radeonsi/si_fence.c +++ b/src/gallium/drivers/radeonsi/si_fence.c @@ -306,7 +306,7 @@ static void si_create_fence_fd(struct pipe_context *ctx, *pfence = NULL; - if (!sscreen->info.has_sync_file) + if (!sscreen->info.has_fence_to_handle) return; rfence = si_create_multi_fence(); @@ -330,7 +330,7 @@ static int si_fence_get_fd(struct pipe_screen *screen, struct si_multi_fence *rfence = (struct si_multi_fence *)fence; int gfx_fd = -1, sdma_fd = -1; - if (!sscreen->info.has_sync_file) + if (!sscreen->info.has_fence_to_handle) return -1; util_queue_fence_wait(&rfence->ready); diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index fd42adbcae7..9b5a03edafb 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -278,7 +278,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return 0; case PIPE_CAP_NATIVE_FENCE_FD: - return sscreen->info.has_sync_file; + return sscreen->info.has_fence_to_handle; case PIPE_CAP_QUERY_BUFFER_OBJECT: return si_have_tgsi_compute(sscreen); |