summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-11-17radeonsi: enable vcn encodeBoyuan Zhang1-1/+3
Enable vcn encode by creating radeon_encoder for vcn. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add create encoderBoyuan Zhang1-1/+81
Add implementation for create_encoder interface for vcn encode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode get feedbackBoyuan Zhang1-1/+14
Add implementation for get_feedback interface for vcn encode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode destroyBoyuan Zhang1-1/+15
Add implementation for destroy interface for vcn encode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode end frameBoyuan Zhang1-1/+2
Add implementation for end_frame interface for vcn encode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode bitstreamBoyuan Zhang1-1/+13
Add implementation for encode_bitstream interface for vcn encode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode begin frameBoyuan Zhang1-1/+22
Add implementation for begin_frame interface for vcn encode. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode header implementationsBoyuan Zhang2-0/+241
Implement encoding of sps, pps, and silce headers using the newly added h.264 header coding descriptors functions based on h.264 specs. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add encode header algorithmsBoyuan Zhang2-0/+127
Since bitstream headers, e.g. sps, pps, slice, are encoded in driver side, we need to add corresponding algorithms that required to generate those headers. According to h.264 specs, signed/unsigned interger Exp-Golomb-coded syntax element with left bit first (code_se and code_ue) and unsigned integer using n bits (code_fixed_bits) descriptors function are needed. Therefore, adding those algorithms and related variables and output algorithms here. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add ib implementationsBoyuan Zhang1-24/+268
Implement required ibs and command buffer submission interfaces for vcn encode Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add common encode partBoyuan Zhang5-0/+489
Add a skeleton pipe video interface and encode ib interface for video encode on vcn hardware. Add function defines and structures for vcn encode. Update Makefile.sources and meson.build with newly added files. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17vl: add poc typeBoyuan Zhang1-0/+1
Different from vce encoding, vcn encoding requires driver side to encode bitstream header, such as pps, sps and slice header. pic_order_cnt_type is a required variable when encoding both sps and slice header, therefore we need to add this new variable here, and hold the value passed from st, e.g. vaapi interface Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17winsys/amdgpu: add vcn enc cs supportBoyuan Zhang1-1/+6
New cs support is needed for vcn encode Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/common: add vcn enc ip info queryBoyuan Zhang1-1/+9
New ip info query is needed for vcn encode Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/winsys: add vcn enc ring typeBoyuan Zhang1-0/+1
New ring type is needed for vcn encode Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-17radeon/vcn: add vcn encode interfaceBoyuan Zhang1-0/+325
Add a new header file for vcn encode interface Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-08-22radeon/vcn: enable P016 mode supportLeo Liu1-7/+11
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-08-22radeon/vcn: correct target buffer pitch calculationLeo Liu1-1/+1
since the way should be as same as UVD Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-07-25radeon/vcn: move message buffer to vram for nowLeo Liu1-1/+2
To workaround an unknown bug. Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-06-27radeon/vcn: enable h264 decode entension supportLeo Liu2-0/+3
It's enabled through message buffer for UVD Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-05-29amd/common: set vcn dec as hw decode as wellLeo Liu1-0/+2
Recommit after issue resolved by the previous patch. Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-29amd/common: add vcn dec ip info query for amdgpu version 3.17Leo Liu1-1/+9
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-05-26Revert "amd/common: add vcn dec ip info query"Dave Airlie1-7/+1
This reverts commit 524d4fff9e0e58e812e71bc5ba2c92ffa73bee16. This commit breaks amdgpu on kernels with no DEC IP support. Caught by the airlied CI system.
2017-05-26Revert "amd/common: set vcn dec as hw decode as well"Dave Airlie1-2/+0
This reverts commit 50d322be2f30bb935ee52b3b3649785975771110. A previous patch breaks amdgpu on non-vcn decode systems, but have to revert this first.
2017-05-25radeonsi: enable vcn decodeLeo Liu1-1/+4
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25winsys/amdgpu: add vcn dec cs supportLeo Liu1-1/+10
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25amd/common: set vcn dec as hw decode as wellLeo Liu1-0/+2
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25amd/common: add vcn dec ip info queryLeo Liu1-1/+7
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message for mpeg4 codecLeo Liu1-0/+51
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message for mpeg2 codecLeo Liu1-0/+66
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message for vc1 codecLeo Liu1-0/+72
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message for hevc codecLeo Liu1-0/+225
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message decode for avc codecLeo Liu1-4/+193
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message feedbackLeo Liu1-1/+5
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message destroyLeo Liu1-1/+10
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add decode message createLeo Liu1-1/+21
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add common decode partLeo Liu3-0/+675
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/winsys: add vcn dec ring typeLeo Liu1-0/+1
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25radeon/vcn: add vcn decode interfaceLeo Liu2-0/+502
Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-05-25configure.ac: update libdrm amdgpu version requirement to 2.4.81Leo Liu1-1/+1
VCN decode has a new interface, and that depends on the latest libdrm Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>