Skip to content

Commit 16fa6b8

Browse files
Tvrtko Ursulintursulin
authored andcommitted
drm/i915: Use provided dma_fence_is_chain
Replace open-coded helper with the subsystem one. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net> Link: https://lore.kernel.org/r/20250512072047.56851-1-tvrtko.ursulin@igalia.com
1 parent 5dff172 commit 16fa6b8

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

drivers/gpu/drm/i915/gem/i915_gem_wait.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ static void fence_set_priority(struct dma_fence *fence,
106106
rcu_read_unlock();
107107
}
108108

109-
static inline bool __dma_fence_is_chain(const struct dma_fence *fence)
110-
{
111-
return fence->ops == &dma_fence_chain_ops;
112-
}
113-
114109
void i915_gem_fence_wait_priority(struct dma_fence *fence,
115110
const struct i915_sched_attr *attr)
116111
{
@@ -126,7 +121,7 @@ void i915_gem_fence_wait_priority(struct dma_fence *fence,
126121

127122
for (i = 0; i < array->num_fences; i++)
128123
fence_set_priority(array->fences[i], attr);
129-
} else if (__dma_fence_is_chain(fence)) {
124+
} else if (dma_fence_is_chain(fence)) {
130125
struct dma_fence *iter;
131126

132127
/* The chain is ordered; if we boost the last, we boost all */

0 commit comments

Comments
 (0)