ac/gpuinfo: add use_userq and AMD_USERQ variable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29010>
This commit is contained in:
Yogesh Mohan Marimuthu 2023-11-26 15:08:59 +05:30 committed by Marge Bot
parent 0182629411
commit 093cf74b26
2 changed files with 2 additions and 0 deletions

View file

@ -236,6 +236,7 @@ struct radeon_info {
bool has_tmz_support;
bool has_trap_handler_support;
bool kernel_has_modifiers;
bool use_userq;
/* If the kernel driver uses CU reservation for high priority compute on gfx10+, it programs
* a global CU mask in the hw that is AND'ed with CU_EN register fields set by userspace.

View file

@ -60,6 +60,7 @@ static bool do_winsys_init(struct amdgpu_winsys *aws,
strstr(debug_get_option("AMD_DEBUG", ""), "sqtt") != NULL;
aws->zero_all_vram_allocs = strstr(debug_get_option("R600_DEBUG", ""), "zerovram") != NULL ||
driQueryOptionb(config->options, "radeonsi_zerovram");
aws->info.use_userq = debug_get_bool_option("AMD_USERQ", false);
return true;