anv: disable debug logging spam

nobody wants to see this by default, so disable it until #5404
is resolved to make it more manageable

Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13628>
This commit is contained in:
Mike Blumenkrantz 2021-10-26 13:27:19 -04:00 committed by Marge Bot
parent 4af7842ede
commit 841bea2c9f
2 changed files with 5 additions and 5 deletions

View file

@ -90,14 +90,14 @@ compiler_debug_log(void *data, UNUSED unsigned *id, const char *fmt, ...)
{
char str[MAX_DEBUG_MESSAGE_LENGTH];
struct anv_device *device = (struct anv_device *)data;
struct anv_instance *instance = device->physical->instance;
UNUSED struct anv_instance *instance = device->physical->instance;
va_list args;
va_start(args, fmt);
(void) vsnprintf(str, MAX_DEBUG_MESSAGE_LENGTH, fmt, args);
va_end(args);
vk_logd(VK_LOG_NO_OBJS(&instance->vk), "%s", str);
//vk_logd(VK_LOG_NO_OBJS(&instance->vk), "%s", str);
}
static void

View file

@ -60,9 +60,9 @@ static void anv_spirv_nir_debug(void *private_data,
switch (level) {
case NIR_SPIRV_DEBUG_LEVEL_INFO:
vk_logi(VK_LOG_OBJS(&debug_data->module->base),
"SPIR-V offset %lu: %s",
(unsigned long) spirv_offset, message);
//vk_logi(VK_LOG_OBJS(&debug_data->module->base),
//"SPIR-V offset %lu: %s",
//(unsigned long) spirv_offset, message);
break;
case NIR_SPIRV_DEBUG_LEVEL_WARNING:
vk_logw(VK_LOG_OBJS(&debug_data->module->base),