[PATCH] lib/meson: Enable userqueues based on libdrm version

vitaly prosyak vprosyak at amd.com
Mon Jun 9 21:35:33 UTC 2025


Reviewed-by Vitaly Prosyak  vitaly.prosyak at amd.com>

On 2025-06-09 03:33, Sunil Khatri wrote:
> Enable amdgpu userqueues support and test support if
> libdrm version is >= 2.4.125.
>
> Signed-off-by: Sunil Khatri <sunil.khatri at amd.com>
> ---
>  lib/meson.build | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/lib/meson.build b/lib/meson.build
> index 04a568cf1..dda30e4bd 100644
> --- a/lib/meson.build
> +++ b/lib/meson.build
> @@ -179,10 +179,12 @@ if libdrm_amdgpu.found()
>  		warning('libdrm <= 2.4.99 found, amdgpu_cs_query_reset_state2 not applicable')
>  	endif
>  
> -	if cc.has_function('amdgpu_create_userqueue', dependencies: libdrm_amdgpu)
> -		add_project_arguments('-DAMDGPU_USERQ_ENABLED=1', language: 'c')
> -		#conf.set('AMDGPU_USERQ_ENABLED', 1)
> -	endif	
> +	if libdrm_amdgpu.version().version_compare('>= 2.4.125')
> +		add_project_arguments('-DAMDGPU_USERQ_ENABLED', language: 'c')
> +	else
> +		warning('libdrm < 2.4.125 found, amdgpu user queue support is not enabled')
> +	endif
> +
>  endif
>  
>  if libunwind.found()


More information about the igt-dev mailing list