diff options
author | Monk Liu <Monk.Liu@amd.com> | 2016-03-17 01:48:13 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-17 11:54:11 -0400 |
commit | 73cfa5f5cec3f4b99185d3535928dee6d01ba2f6 (patch) | |
tree | 98dc76f0278ae75f41b597610e70879076b2b3bd /drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |
parent | cc55c45db5e2c97445d4663d45348a0fc27bf9ad (diff) |
drm/amdgpu: move ib.fence to job.fence
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-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_vce.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c index 6d191fb40b38..4bec0c108cea 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |||
@@ -426,6 +426,7 @@ int amdgpu_vce_get_create_msg(struct amdgpu_ring *ring, uint32_t handle, | |||
426 | ib->ptr[i] = 0x0; | 426 | ib->ptr[i] = 0x0; |
427 | 427 | ||
428 | r = amdgpu_ib_schedule(ring, 1, ib, NULL, &f); | 428 | r = amdgpu_ib_schedule(ring, 1, ib, NULL, &f); |
429 | job->fence = f; | ||
429 | if (r) | 430 | if (r) |
430 | goto err; | 431 | goto err; |
431 | 432 | ||
@@ -487,6 +488,7 @@ int amdgpu_vce_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle, | |||
487 | 488 | ||
488 | if (direct) { | 489 | if (direct) { |
489 | r = amdgpu_ib_schedule(ring, 1, ib, NULL, &f); | 490 | r = amdgpu_ib_schedule(ring, 1, ib, NULL, &f); |
491 | job->fence = f; | ||
490 | if (r) | 492 | if (r) |
491 | goto err; | 493 | goto err; |
492 | 494 | ||