summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-12-14st/va: handle default post process regionsChristian König1-8/+28
Avoid referencing NULL pointers. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Tested-by: Julien Isorce <j.isorce@samsung.com>
2015-12-14st/va: fix unused variable warningChristian König1-1/+0
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com>
2015-12-14st/va: clean up post process includesChristian König1-6/+0
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Tested-by: Julien Isorce <j.isorce@samsung.com>
2015-12-14st/va: cleanup filter color standard handlingChristian König1-4/+4
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Tested-by: ulien Isorce <j.isorce@samsung.com>
2015-12-07st/va: disable MPEG4 by default v2Christian König2-1/+15
The workarounds are too hacky to enable them by default and otherwise MPEG4 doesn't work reliably. v2: add docs/envvars.html, CC stable and fix typos Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> (v1) Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> (v1) Cc: "11.1.0" <mesa-stable@lists.freedesktop.org>
2015-12-07st/va: move HEVC functions into separate file v2Christian König4-168/+215
v2: actually copy all of it Signed-off-by: Christian König <christian.koenig@amd.com>
2015-11-24st/va: fix indentationChristian König1-7/+7
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-24st/va: move MPEG4 functions into separate fileChristian König4-180/+220
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-24st/va: move VC-1 functions into separate fileChristian König4-35/+70
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-24st/va: move H264 functions into separate fileChristian König4-72/+121
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-24st/va: move MPEG12 functions into separate fileChristian König4-49/+92
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-24st/va: move post processing function into own fileChristian König4-57/+100
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-24st/va: fix post process dirty area handlingChristian König1-4/+1
The dirty area in this call isn't related to the screen at all. v2: set clear dirty area to false as well Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Julien Isorce <j.isorce@samsung.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-11-08radeon/uvd: add H.265/HEVC to legal notesChristian König1-2/+2
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-10-13r600/vce: enable VCE for trinity/richlandChristian König1-1/+21
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-10-13r600/uvd: disable UVD tiling by defaultChristian König1-3/+5
It has only minimal advantages for post processing and doesn't work with VCE. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2015-08-14radeon/vce: make reloc offset signedChristian König4-6/+6
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>
2015-08-14gallium/radeon: use VM for VCEChristian König4-20/+44
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>
2015-08-14gallium/radeon: use VM for UVDChristian König1-2/+14
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>
2015-08-14st/vdpau: add HEVC support v2Christian König3-4/+140
v2: fix return code Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-08-14vl: add HEVC profiles and definesChristian König3-2/+120
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com>
2015-07-09st/vdpau: fix mixer size checksChristian König1-11/+11
We need to check what the 3D pipe is able to handle for the mixer, not what the decoder is able to decode. This fixes output of resolutions like 720x1280. Signed-off-by: Christian König <christian.koenig@amd.com> CC: mesa-stable@lists.freedesktop.org
2015-07-09vl: cleanup video buffer private when the decoder is destroyedChristian König2-0/+28
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90728 Signed-off-by: Christian König <christian.koenig@amd.com> CC: mesa-stable@lists.freedesktop.org
2015-05-22radeon/vce: adapt new firmware interface changesChristian König4-2/+252
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)
2015-05-22radeon/vce: move CPB handling function into common codeChristian König3-29/+48
They are not firmware version dependent. Signed-off-by: Christian König <christian.koenig@amd.com>
2015-03-27gallium/vl: partially revert "Use util_cpu_to_le{16,32} in many more places."Christian König1-1/+5
The data in memory is in big endian format and needs to be converted into CPU byte order. So the patch actually reversed what needs to be done. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-02-17winsys/radeon: add user pointer supportChristian König2-0/+113
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2014-10-13configure: use $libdir/dri as default for VA-APIChristian König1-2/+2
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-10-13configure: remove superflous VA-API line from configure.acChristian König1-1/+0
We don't have GALLIUM_STATE_TRACKERS_DIRS any more. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-10-13configure: respect $libdir for the OMX installation dirChristian König1-5/+2
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-10-13configure: Revert "ask vdpau.pc for the default location of the vdpau drivers"Christian König1-8/+3
This reverts commit bbe6f7f865cd4316b5f885507ee0b128a20686eb. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-10-01st/va: implement Picture functions for mpeg2 h264 and vc1Christian König4-6/+371
This patch implements codec for mpeg2 h264 and vc1, populates codec parameters and pass them to HW driver. Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Leo Liu <leo.liu@amd.com>
2014-10-01st/va: implement Context Surface and BufferChristian König4-21/+320
This patch implements context managements, relate it HW driver, functions for video surface managements, and functions for application data memory buffer managements. implemented functions: vlVa(Create|Destroy)Context vlVa(Create|Destroy|Put)Surfaces vlVa(Create|Destroy)Buffer Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Leo Liu <leo.liu@amd.com>
2014-10-01st/va: implement vlVa(Create|Destroy|Query|Get)ConfigChristian König3-5/+143
This patch is for application to query configuration, such as profiles, entrypoints, and attributes v2: fix missing profile with query Signed-off-by: Michael Varga <michael.varga@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Leo Liu <leo.liu@amd.com>
2014-10-01st/va: skeleton VAAPI state trackerChristian König16-0/+1052
This patch adds a skeleton VA-API state tracker, which is filled with live in the subsequent patches. v2: fixes in configure.ac and va state_tracker Makefile.am v3: do not link against libva. detect libva version, and correctly set driver entrypoint name. rebase(cleanup) targets/va/Makefile.am v4: cleanup va version auto detection add back targets/va/va.sym 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>
2014-09-11radeon/uvd: use PIPE_USAGE_STAGING for msg&fb buffersChristian König1-1/+1
That better matches the actual userspace use case, the kernel will force it to VRAM if the hardware requires it. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2014-09-11radeon/video: use the hw to initial clear the buffersChristian König3-10/+8
Less CPU overhead and avoids contention over CPU accessible memory on startup. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2014-09-11radeon/video: use more of the common buffer code v2Christian König6-67/+62
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>
2014-09-08mesa/st: don't advertise NV_vdpau_interop if it doesn't work.Christian König1-1/+7
As long as we don't have a workaround for frame based decoding in VDPAU we should not advertise NV_vdpau_interop. v2: fix commit message, check if get_video_param is present Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
2014-08-26radeon/uvd: fix field handling on R6XX style UVDChristian König1-2/+5
The first UVD generation can only do frame based output. Signed-off-by: Christian König <christian.koenig@amd.com>
2014-08-26vl/compositor: set the scissor before clearing the render targetChristian König1-1/+1
Otherwise we clear areas that shouldn't be cleared. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
2014-08-26st/vdpau: fix vlVdpOutputSurfaceRender(Output|Bitmap)SurfaceChristian König3-15/+71
Correctly handle that the source_surface is only optional. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80561 Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
2014-08-14st/vdpau: add device reference countingChristian König8-11/+46
This fixes an issue with flash where it tries to destroy a decoder after already destroying the device associated with the decoder. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=82517 Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-08-12radeon/uvd: fix gpu_address for video surfacesChristian König2-0/+4
We need to get the new gpu_address as well when reallocating the cs buffer. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82428 Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Kai Wasserbäch <kai@dev.carbon-project.org>
2014-07-09radeonsi: fix order of r600_need_dma_space and r600_context_bo_relocChristian König1-1/+2
Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2014-07-06gallium/radeon: use PRIX64 instead of PRIu64Christian König2-2/+2
We want hex values here, not decimals. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2014-04-22st/omx/enc: implement frame reordering and B-framesChristian König2-23/+87
Signed-off-by: Christian König <christian.koenig@amd.com>
2014-04-11st/omx/enc: separate input buffer private and task structureChristian König2-59/+127
Keep tasks as linked list, this way we can associate more than one encoding task with each buffer. Signed-off-by: Christian König <christian.koenig@amd.com>
2014-04-11radeon/vce: implement B-frame supportChristian König2-22/+53
Signed-off-by: Slava Grigorev <slava.grigorev@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
2014-04-11radeon/vce: add proper CPB backtrackChristian König3-23/+123
Remember what frames we encoded at which position. Signed-off-by: Christian König <christian.koenig@amd.com>