radv: fix creating pipeline binary from the traversal shader

rt_stage_info is NULL.

Fixes: 8802612458 ("radv: advertise VK_KHR_pipeline_binary")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34141>
This commit is contained in:
Samuel Pitoiset 2025-03-18 14:45:55 +01:00 committed by Marge Bot
parent 84dbd34332
commit 29b3d9f0f4

View file

@ -220,7 +220,8 @@ radv_create_pipeline_binary_from_rt_shader(struct radv_device *device, const VkA
};
memcpy(header.stage_sha1, stage_sha1, sizeof(header.stage_sha1));
memcpy(&header.stage_info, rt_stage_info, sizeof(header.stage_info));
if (rt_stage_info)
memcpy(&header.stage_info, rt_stage_info, sizeof(header.stage_info));
blob_init(&blob);
blob_write_bytes(&blob, &header, sizeof(header));