diff options
author | Marek Olšák <marek.olsak@amd.com> | 2022-05-05 13:57:49 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-05-10 06:59:55 +0000 |
commit | 85aa067d0fbb49c234d33cdde03e4a107a85c798 (patch) | |
tree | b1f32d4046c0b369a3a9da55681172b49520d5e1 /src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | |
parent | 720372312064dca608e309ca29cc58021224bb15 (diff) |
amd: replace num_rings[type] with ip[type].num_queues
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16360>
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm/amdgpu_cs.c')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index 029f5f460ce..b195da5b772 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -1195,7 +1195,7 @@ static bool is_noop_fence_dependency(struct amdgpu_cs *acs, * we need the parallelism between IBs for good performance. */ if ((acs->ip_type == AMD_IP_GFX || - acs->ws->info.num_rings[acs->ip_type] == 1) && + acs->ws->info.ip[acs->ip_type].num_queues == 1) && !amdgpu_fence_is_syncobj(fence) && fence->ctx == acs->ctx && fence->fence.ip_type == cs->ib[IB_MAIN].ip_type) |