Re: [Mesa-dev] [PATCH] anv: avoid segmentation fault due to vk_error()

2018-01-19 Thread Tapani Pälli
Reviewed-by: Tapani Pälli (Fixes e5b1bd6ab8) On 01/19/2018 09:59 AM, Samuel Iglesias Gonsálvez wrote: vk_error() is a macro that calls __vk_errorf() with instance == NULL. Then, __vk_errorf() passes a pointer to instance->debug_report_callbacks to vk_debug_error(), which segfaults as this poi

[Mesa-dev] [PATCH] anv: avoid segmentation fault due to vk_error()

2018-01-19 Thread Samuel Iglesias Gonsálvez
vk_error() is a macro that calls __vk_errorf() with instance == NULL. Then, __vk_errorf() passes a pointer to instance->debug_report_callbacks to vk_debug_error(), which segfaults as this pointer is invalid but not NULL. Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/vulkan/anv_util.c |