diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h index d55d73fab87..b6dff4bf81f 100644 --- a/src/amd/common/ac_gpu_info.h +++ b/src/amd/common/ac_gpu_info.h @@ -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. diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 445f3e04130..fcac41270b0 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -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;