Re: [PATCH] drm/amdgpu: Fix copy error in uvd_v6/7_0.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 26.09.2018 um 14:41 schrieb Rex Zhu:
Signed-off-by: Rex Zhu <Rex.Zhu@xxxxxxx>

Actually that code can just be removed because uvd_*_enc_get_destroy_msg is only called with direct=true.

Christian.

---
  drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 2 +-
  drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
index 8ef4a53..2ceab76 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
@@ -313,7 +313,7 @@ static int uvd_v6_0_enc_get_destroy_msg(struct amdgpu_ring *ring,
  	if (direct)
  		r = amdgpu_job_submit_direct(job, ring, &f);
  	else
-		r = amdgpu_job_submit(job, &ring->adev->vce.entity,
+		r = amdgpu_job_submit(job, &ring->adev->uvd.entity,
  				      AMDGPU_FENCE_OWNER_UNDEFINED, &f);
  	if (r)
  		goto err;
diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
index a289f6a..31a9665 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
@@ -320,7 +320,7 @@ int uvd_v7_0_enc_get_destroy_msg(struct amdgpu_ring *ring, uint32_t handle,
  	if (direct)
  		r = amdgpu_job_submit_direct(job, ring, &f);
  	else
-		r = amdgpu_job_submit(job, &ring->adev->vce.entity,
+		r = amdgpu_job_submit(job, &ring->adev->uvd.entity,
  				      AMDGPU_FENCE_OWNER_UNDEFINED, &f);
  	if (r)
  		goto err;

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux