mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
rusticl: release borrow on device build before linking
This allows for a later refactor to share linking code between clBuildProgram and clLinkProgram in which the device build is borrowed mutably. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36497>
This commit is contained in:
parent
8f71f1527a
commit
a6f96a18d8
1 changed files with 2 additions and 1 deletions
|
|
@ -583,7 +583,8 @@ impl Program {
|
|||
}
|
||||
}
|
||||
|
||||
let spirvs = [d.spirv.as_ref().unwrap()];
|
||||
let spirv = d.spirv.take().unwrap();
|
||||
let spirvs = [&spirv];
|
||||
let (spirv, log) = spirv::SPIRVBin::link(&spirvs, lib);
|
||||
|
||||
d.log.push_str(&log);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue