mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 12:00:26 +01:00
rusticl/context: use write_iter for CL_DEVICES_FOR_GL_CONTEXT_KHR
Reviewed-by: @LingMan Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32268>
This commit is contained in:
parent
86a279c36b
commit
3a155a4591
1 changed files with 5 additions and 5 deletions
|
|
@ -53,11 +53,11 @@ unsafe impl CLInfo<cl_gl_context_info> for GLCtxManager {
|
|||
}
|
||||
CL_DEVICES_FOR_GL_CONTEXT_KHR => {
|
||||
// TODO: support multiple devices
|
||||
let devs = get_dev_for_uuid(info.device_uuid)
|
||||
.iter()
|
||||
.map(|&d| cl_device_id::from_ptr(d))
|
||||
.collect();
|
||||
v.write::<Vec<cl_device_id>>(devs)
|
||||
v.write_iter::<cl_device_id>(
|
||||
get_dev_for_uuid(info.device_uuid)
|
||||
.iter()
|
||||
.map(|&d| cl_device_id::from_ptr(d)),
|
||||
)
|
||||
}
|
||||
_ => Err(CL_INVALID_VALUE),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue