mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
84dbd34332
commit
29b3d9f0f4
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue