mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
anv: enable perf warning logging in release builds
Call process_intel_debug_variable() early in anv_CreateInstance() so the intel_debug bitset is populated, then set enable_debug_logging when INTEL_DEBUG=perf is active. This makes anv_perf_warn() messages visible in non-debug builds. Signed-off-by: Michael Cheng <michael.cheng@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40551>
This commit is contained in:
parent
7d787ba8c6
commit
ebe94d4903
2 changed files with 3 additions and 2 deletions
|
|
@ -327,6 +327,9 @@ VkResult anv_CreateInstance(
|
|||
instance->debug = parse_debug_string(os_get_option("ANV_DEBUG"),
|
||||
debug_control);
|
||||
|
||||
process_intel_debug_variable();
|
||||
instance->vk.enable_debug_logging = INTEL_DEBUG(DEBUG_PERF);
|
||||
|
||||
intel_driver_ds_init();
|
||||
|
||||
*pInstance = anv_instance_to_handle(instance);
|
||||
|
|
|
|||
|
|
@ -2639,8 +2639,6 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
|||
int master_fd = -1;
|
||||
int ret;
|
||||
|
||||
process_intel_debug_variable();
|
||||
|
||||
fd = open(path, O_RDWR | O_CLOEXEC);
|
||||
if (fd < 0) {
|
||||
if (errno == ENOMEM) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue