diff --git a/src/gallium/frontends/rusticl/api/kernel.rs b/src/gallium/frontends/rusticl/api/kernel.rs index 06cc13b4a7c..d635829b29d 100644 --- a/src/gallium/frontends/rusticl/api/kernel.rs +++ b/src/gallium/frontends/rusticl/api/kernel.rs @@ -240,6 +240,11 @@ pub fn set_kernel_arg( return Err(CL_INVALID_ARG_SIZE); } } + KernelArgType::MemGlobal => { + if arg_size != std::mem::size_of::() { + return Err(CL_INVALID_ARG_SIZE); + } + } _ => { if arg.size != arg_size { return Err(CL_INVALID_ARG_SIZE);