summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2021-02-02 11:11:45 -0500
committerAlex Deucher <alexander.deucher@amd.com>2021-02-26 17:23:49 -0500
commit6f786950b1ff051c6dd913b1bb3aaa9b57befcbf (patch)
treeae483eb6352789d5e5930c2f38db12cdf6054de3 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentb50368da619fb1b721ea3c8fd6a28a719233f6ee (diff)
downloadlinux-stable-6f786950b1ff051c6dd913b1bb3aaa9b57befcbf.tar.gz
linux-stable-6f786950b1ff051c6dd913b1bb3aaa9b57befcbf.tar.bz2
linux-stable-6f786950b1ff051c6dd913b1bb3aaa9b57befcbf.zip
drm/amdgpu/codec: drop the internal codec index
And just use the ioctl index. They are the same. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index c2cb2f0744f2..563c2293f2a3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -584,15 +584,6 @@ enum amd_reset_method {
AMD_RESET_METHOD_PCI,
};
-#define AMDGPU_VIDEO_CODEC_TYPE_MPEG2 0
-#define AMDGPU_VIDEO_CODEC_TYPE_MPEG4 1
-#define AMDGPU_VIDEO_CODEC_TYPE_VC1 2
-#define AMDGPU_VIDEO_CODEC_TYPE_MPEG4_AVC 3
-#define AMDGPU_VIDEO_CODEC_TYPE_HEVC 4
-#define AMDGPU_VIDEO_CODEC_TYPE_JPEG 5
-#define AMDGPU_VIDEO_CODEC_TYPE_VP9 6
-#define AMDGPU_VIDEO_CODEC_TYPE_AV1 7
-
struct amdgpu_video_codec_info {
u32 codec_type;
u32 max_width;