On Thu, Feb 8, 2018 at 5:28 PM, Mark Thompson <s...@jkqxz.net> wrote: > On 06/02/18 20:05, James Zhu wrote: >> The whole series are the updated version. Changes are made mainly based >> on the comments from prevous code review from Alex, Leo and Boyuan >> >> James Zhu (8): >> amd/common:add uvd hevc enc support check in hw query >> winsys/amdgpu:add uvd hevc enc support in amdgpu cs >> radeon/uvd:add uvd hevc enc hw interface header >> radeon/uvd:add uvd hevc enc hw ib implementation >> radeon/uvd:add uvd hevc enc functions >> radeon/uvd:add uvd hevc enc files in Makefile list >> radeonsi:create uvd hevc enc entry >> radeonsi: enable uvd encode for HEVC main >> >> src/amd/common/ac_gpu_info.c | 10 +- >> src/amd/common/ac_gpu_info.h | 1 + >> src/gallium/drivers/radeon/Makefile.sources | 3 + >> src/gallium/drivers/radeon/radeon_uvd_enc.c | 370 ++++++++ >> src/gallium/drivers/radeon/radeon_uvd_enc.h | 471 ++++++++++ >> src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c | 1115 >> +++++++++++++++++++++++ >> src/gallium/drivers/radeonsi/si_get.c | 4 +- >> src/gallium/drivers/radeonsi/si_uvd.c | 15 +- >> src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 6 + >> 9 files changed, 1990 insertions(+), 5 deletions(-) >> create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc.c >> create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc.h >> create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c >> > > Can you explain what the requirements are for using this (hardware, firmware, > software)? > > From what I can find it should be on Polaris and Vega, but I haven't > succeeded in getting it working on Polaris.
Yes, polaris and vega10. For polaris, you'll need a kernel that enables the uvd enc rings. Patches went upstream last year, 4.14 I think? 4.15 is a good bet. As for the polaris firmware, you'll need version FW_1_130_16 or newer: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=2a713be25a44bd6cec90d8affc54b246a2ca9c7b Alex > > Thanks, > > - Mark > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev