aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-07-13 03:58:49 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-16 17:11:52 -0400
commiteb3961a57424a5c3dae44576d1c88e64a818d871 (patch)
tree81ecfe0228b383abe5f2973bc62543e6ebeb2da4 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parent050d9d43a7d3847fd9726a675bf644b124518425 (diff)
drm/amdgpu: remove fence context from the job
Can be obtained directly from the fence as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Acked-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index 6d8df76b5a5d..6eb7ee859ffd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -1239,7 +1239,6 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,
1239 } 1239 }
1240 1240
1241 job->owner = p->filp; 1241 job->owner = p->filp;
1242 job->fence_ctx = entity->fence_context;
1243 p->fence = dma_fence_get(&job->base.s_fence->finished); 1242 p->fence = dma_fence_get(&job->base.s_fence->finished);
1244 1243
1245 r = amdgpu_ctx_add_fence(p->ctx, ring, p->fence, &seq); 1244 r = amdgpu_ctx_add_fence(p->ctx, ring, p->fence, &seq);