diff options
author | Leo Liu <leo.liu@amd.com> | 2017-11-21 09:08:07 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-11-28 17:44:11 -0500 |
commit | b43aaee69d4327d05e7624d9471c17d015b4d67d (patch) | |
tree | 437481fcf8ddddee643bb320c1993471cc6dcd78 /drivers/gpu/drm/amd/amdgpu | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) |
drm/amdgpu: move UVD/VCE and VCN structure out from union
With the enablement of VCN Dec and Enc from user space, User space queries
kernel for the IP information, if HW has UVD/VCE, the info comes from these
IP blocks, but this could end up mis-interpret for VCN when they are in the
union, the other way same when HW with VCN block.
Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Fixes: 95d0906f8506 ("drm/amdgpu: add initial vcn support and decode tests")
Cc: stable@vger.kernel.org
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 5afaf6016b4a..c25cedff4915 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -1572,18 +1572,14 @@ struct amdgpu_device { | |||
1572 | /* sdma */ | 1572 | /* sdma */ |
1573 | struct amdgpu_sdma sdma; | 1573 | struct amdgpu_sdma sdma; |
1574 | 1574 | ||
1575 | union { | 1575 | /* uvd */ |
1576 | struct { | 1576 | struct amdgpu_uvd uvd; |
1577 | /* uvd */ | 1577 | |
1578 | struct amdgpu_uvd uvd; | 1578 | /* vce */ |
1579 | 1579 | struct amdgpu_vce vce; | |
1580 | /* vce */ | 1580 | |
1581 | struct amdgpu_vce vce; | 1581 | /* vcn */ |
1582 | }; | 1582 | struct amdgpu_vcn vcn; |
1583 | |||
1584 | /* vcn */ | ||
1585 | struct amdgpu_vcn vcn; | ||
1586 | }; | ||
1587 | 1583 | ||
1588 | /* firmwares */ | 1584 | /* firmwares */ |
1589 | struct amdgpu_firmware firmware; | 1585 | struct amdgpu_firmware firmware; |