anv: Take a device in anv_perf_warn

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
This commit is contained in:
Jason Ekstrand
2020-01-17 22:57:35 -06:00
committed by Marge Bot
parent cb6ea77045
commit 1ec84bd208
4 changed files with 15 additions and 15 deletions

View File

@@ -50,7 +50,7 @@ anv_loge_v(const char *format, va_list va)
}
void anv_printflike(6, 7)
__anv_perf_warn(struct anv_instance *instance, const void *object,
__anv_perf_warn(struct anv_device *device, const void *object,
VkDebugReportObjectTypeEXT type,
const char *file, int line, const char *format, ...)
{
@@ -64,7 +64,7 @@ __anv_perf_warn(struct anv_instance *instance, const void *object,
snprintf(report, sizeof(report), "%s: %s", file, buffer);
vk_debug_report(&instance->debug_report_callbacks,
vk_debug_report(&device->physical->instance->debug_report_callbacks,
VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT,
type,
(uint64_t) (uintptr_t) object,