diff --git a/src/gallium/frontends/rusticl/api/kernel.rs b/src/gallium/frontends/rusticl/api/kernel.rs index c5ac9b43a2a..adcb6feddad 100644 --- a/src/gallium/frontends/rusticl/api/kernel.rs +++ b/src/gallium/frontends/rusticl/api/kernel.rs @@ -367,7 +367,14 @@ fn set_kernel_arg( return Err(CL_INVALID_ARG_SIZE); } } - _ => { + + KernelArgType::Sampler => { + if arg_size != std::mem::size_of::() { + return Err(CL_INVALID_ARG_SIZE); + } + } + + KernelArgType::Constant => { if arg.size != arg_size { return Err(CL_INVALID_ARG_SIZE); }