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:
Karol Herbst 2022-03-17 00:06:16 +01:00 committed by Marge Bot
parent 6bc7ec1661
commit 9dd56ff2e7
2 changed files with 8 additions and 3 deletions

View file

@ -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(

View file

@ -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;