diff options
author | Christian König <christian.koenig@amd.com> | 2018-07-13 03:58:49 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-16 17:11:52 -0400 |
commit | eb3961a57424a5c3dae44576d1c88e64a818d871 (patch) | |
tree | 81ecfe0228b383abe5f2973bc62543e6ebeb2da4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 050d9d43a7d3847fd9726a675bf644b124518425 (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_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index ce7739832d29..5518e623fed2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -139,7 +139,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, | |||
139 | /* ring tests don't use a job */ | 139 | /* ring tests don't use a job */ |
140 | if (job) { | 140 | if (job) { |
141 | vm = job->vm; | 141 | vm = job->vm; |
142 | fence_ctx = job->fence_ctx; | 142 | fence_ctx = job->base.s_fence->scheduled.context; |
143 | } else { | 143 | } else { |
144 | vm = NULL; | 144 | vm = NULL; |
145 | fence_ctx = 0; | 145 | fence_ctx = 0; |