summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_vce.h
Commit message (Collapse)AuthorAgeFilesLines
* gallium/radeon: remove radeon_winsys_cs_handleMarek Olšák2015-12-111-4/+4
| | | | | | | | "radeon_winsys_cs_handle *cs_buf" is now equivalent to "pb_buffer *buf". Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* radeon/vce: add new firmware interface supportLeo Liu2015-11-201-0/+3
| | | | | | | | Add new interface to create and encode Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* radeon/vce: implement VCE dual instance supportLeo Liu2015-08-141-0/+3
| | | | | | | | | | VCE dual instances are encoding in parallel, it needs two frames for encoding with their own parameters in one IB. Master instance will check the task info to find another frame, assign it to the slave instance Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
* radeon/vce: make reloc offset signedChristian König2015-08-141-2/+2
| | | | | | | We need a negative offset for FW 50. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
* radeon/vce: add config task and put task info into encoder v2Leo Liu2015-08-141-0/+6
| | | | | | | | | | | The config task has own task ID, extract the configuration functions into config task. v2 (chk): calculate offset automatically Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
* radeon/vce: add dual pipe support for VILeo Liu2015-08-141-1/+1
| | | | | Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* radeon/vce: implement VCE two pipe supportLeo Liu2015-08-141-0/+4
| | | | | | | | v2: rebase by Marek Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* gallium/radeon: use VM for VCEChristian König2015-08-141-6/+9
| | | | | | | | | | v2: (leo) add checking for driver backend v3: (leo) change variable name from use_amdgpu to use_vm v4: rebase by Marek Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
* radeon/vce: adapt new firmware interface changesChristian König2015-05-221-0/+3
| | | | | | | | | v2: make this also compatible with original released firmware v3 (chk): switch to original idea of separate files for fw versions Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v2)
* radeon/vce: move CPB handling function into common codeChristian König2015-05-221-0/+7
| | | | | | They are not firmware version dependent. Signed-off-by: Christian König <christian.koenig@amd.com>
* util: Move gallium's linked list to utilJason Ekstrand2015-05-081-1/+1
| | | | | | | | | The linked list in gallium is pretty much the kernel list and we would like to have a C-based linked list for all of mesa. Let's not duplicate and just steal the gallium one. Acked-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Rob Clark <robclark@freedesktop.org>
* winsys/radeon: add a private interface for radeon_surfaceMarek Olšák2015-04-291-3/+3
|
* radeon/vce: implement video usability information supportLeo Liu2015-03-311-0/+2
| | | | | | | | | This will help encoding VUI into the bitstream v2: make backward compatible Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* radeon/video: use more of the common buffer code v2Christian König2014-09-111-0/+1
| | | | | | | | | In preparation to using buffers clears with the hw engine(s). v2: split out flipping to using hw buffer clears. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
* radeon/vce: set number of cpbs based on levelLeo Liu2014-06-181-2/+1
| | | | | | | v2: add error check for cpb size 0 Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
* radeon/vce: implement B-frame supportChristian König2014-04-111-1/+1
| | | | | Signed-off-by: Slava Grigorev <slava.grigorev@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
* radeon/vce: add proper CPB backtrackChristian König2014-04-111-0/+15
| | | | | | Remember what frames we encoded at which position. Signed-off-by: Christian König <christian.koenig@amd.com>
* radeon/vce: remove RVCE_NUM_CPB_EXTRA_FRAMESChristian König2014-04-111-1/+0
| | | | | | Doesn't seems to be needed any more. Signed-off-by: Christian König <christian.koenig@amd.com>
* radeon/vce: cleanup cpb handlingLeo Liu2014-04-041-0/+3
| | | | | | | v2: fix whitespace errors, minor coding style changes Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
* r300g,uvd,vce: set priorities for relocationsMarek Olšák2014-03-111-1/+1
| | | | This updates all occurences of cs_add_reloc.
* radeon/vce: initial VCE support v8Christian König2014-02-131-0/+98
v2 (chk): revert feedback buffer hack v3 (slava): fixed bitstream size calculation v4 (chk): always create buffers in the right domain v5 (chk): flush async v6 (chk): rework fw interface add version check v7 (leo): implement cropping support v8 (chk): add hw checks Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Slava Grigorev <slava.grigorev@amd.com>