drm/i915: fix broken build
authorMatthew Auld <matthew.auld@intel.com>
Thu, 7 Apr 2022 16:45:31 +0000 (17:45 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 8 Apr 2022 08:36:11 +0000 (10:36 +0200)
I guess this was missed in the conversion or something.

Fixes: 7bc80a5462c3 ("dma-buf: add enum dma_resv_usage v4")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220407164532.1242578-1-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/i915/i915_deps.c

index 999210b..297b8e4 100644 (file)
@@ -226,7 +226,7 @@ int i915_deps_add_resv(struct i915_deps *deps, struct dma_resv *resv,
        struct dma_fence *fence;
 
        dma_resv_assert_held(resv);
-       dma_resv_for_each_fence(&iter, resv, true, fence) {
+       dma_resv_for_each_fence(&iter, resv, dma_resv_usage_rw(true), fence) {
                int ret = i915_deps_add_dependency(deps, fence, ctx);
 
                if (ret)