]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add asic callback for querying video codec info (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jan 2021 22:18:54 +0000 (17:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2021 22:23:49 +0000 (17:23 -0500)
commit5f70bd870f471bc8f591fa7e542d63cd3ce143a4
treebc08044ff4cc15706157a041e69a97908a18c404
parent1e979c92a5765cb0055c49c79b1ad9c38ddb6c55
drm/amdgpu: add asic callback for querying video codec info (v3)

This will be used by a new INFO ioctl query to fetch the decode
and encode capabilities from the kernel driver rather than
hardcoding them in mesa.  This gives us more fine grained control
of capabilities using information that is only availabl in the
kernel (e.g., platform limitations or bandwidth restrictions).

v2: reorder the codecs to better align with mesa
v3: add max_pixels_per_frame to handle the portrait case

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com> (v2)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h