mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 09:20:30 +01:00
rusticl: implement clUnloadPlatformCompiler
Signed-off-by: Karol Herbst <kherbst@redhat.com> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15439>
This commit is contained in:
parent
6bc7ec1661
commit
9dd56ff2e7
2 changed files with 8 additions and 3 deletions
|
|
@ -1360,9 +1360,8 @@ extern "C" fn cl_link_program(
|
|||
)
|
||||
}
|
||||
|
||||
extern "C" fn cl_unload_platform_compiler(_platform: cl_platform_id) -> cl_int {
|
||||
println!("cl_unload_platform_compiler not implemented");
|
||||
CL_OUT_OF_HOST_MEMORY
|
||||
extern "C" fn cl_unload_platform_compiler(platform: cl_platform_id) -> cl_int {
|
||||
match_err!(unload_platform_compiler(platform))
|
||||
}
|
||||
|
||||
extern "C" fn cl_get_kernel_arg_info(
|
||||
|
|
|
|||
|
|
@ -92,6 +92,12 @@ pub fn get_platform_ids(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn unload_platform_compiler(platform: cl_platform_id) -> CLResult<()> {
|
||||
platform.get_ref()?;
|
||||
// TODO unload the compiler
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_platform_info() {
|
||||
let mut s: usize = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue