Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8267
Fixes:
b0d698c5328 ("rusticl: correctly check global argument size")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21604>
return Err(CL_INVALID_ARG_SIZE);
}
}
- KernelArgType::MemGlobal | KernelArgType::MemConstant => {
+ KernelArgType::MemGlobal
+ | KernelArgType::MemConstant
+ | KernelArgType::Image
+ | KernelArgType::RWImage
+ | KernelArgType::Texture => {
if arg_size != std::mem::size_of::<cl_mem>() {
return Err(CL_INVALID_ARG_SIZE);
}