From b2568be1de8e00d88557a77af50b2a354f67087e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 6 Apr 2022 12:37:47 +0200 Subject: [PATCH] radv: stop passing the module to the compiler debug callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After SPIRV->NIR, the driver shouldn't rely on the module. This will still report messages via VK_EXT_debug_report but the object will be NULL. Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 58ad7d076db..11e229eee83 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -287,7 +287,7 @@ radv_compiler_debug(void *private_data, enum radv_compiler_debug_level level, co * from the implementation and layers. */ vk_debug_report(&instance->vk, vk_flags[level] | VK_DEBUG_REPORT_DEBUG_BIT_EXT, - &debug_data->module->base, 0, 0, "radv", message); + NULL, 0, 0, "radv", message); } static bool @@ -1949,7 +1949,7 @@ shader_compile(struct radv_device *device, struct vk_shader_module *module, struct radv_shader_debug_data debug_data = { .device = device, - .module = module, + .module = NULL, }; options->family = chip_family;