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:

committed by
Marge Bot

parent
cb6ea77045
commit
1ec84bd208
@@ -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,
|
||||
|
Reference in New Issue
Block a user