[PATCH] amdgpu: get maximum and used UVD handles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12 December 2016 at 18:51,  <arindam.nath at amd.com> wrote:
> From: Arindam Nath <arindam.nath at amd.com>
>
> User might want to query the maximum number of UVD
> instances supported by firmware. In addition to that,
> if there are multiple applications using UVD handles
> at the same time, he might also want to query the
> currently used number of handles.
>
> For this we add a new query AMDGPU_INFO_NUM_HANDLES
> and a new struct drm_amdgpu_info_num_handles to
> get these values.
>
> Signed-off-by: Arindam Nath <arindam.nath at amd.com>
> Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
>  include/drm/amdgpu_drm.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
Follow the documented way to update the libdrm headers [1].
You will want to tackle this [2] small task first.

If the documentation is unclear and/or can be improved feel free to
send a patch.

Thanks
Emil

[1] https://cgit.freedesktop.org/mesa/drm/tree/include/drm/README#n68
[2] https://cgit.freedesktop.org/mesa/drm/tree/include/drm/README#n97


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux