aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/selftests/i915_request.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2020-12-23 12:20:50 +0000
committerChris Wilson <[email protected]>2020-12-23 21:58:00 +0000
commitd7d82f5d5c04ed9cb68d3663ffde10898a2969be (patch)
treeefdc7d646bfe753af5e78001c9330c4f797ef0f8 /drivers/gpu/drm/i915/selftests/i915_request.c
parentf170523a7b8eb8443e895e3e804cf52726bfc367 (diff)
drm/i915/gt: Prefer recycling an idle fence
If we want to reuse a fence that is in active use by the GPU, we have to wait an uncertain amount of time, but if we reuse an inactive fence, we can change it right away. Loop through the list of available fences twice, ignoring any active fences on the first pass. Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_request.c')
0 files changed, 0 insertions, 0 deletions