From 89b93f7e344830b82f54054a9c7966ee383216a9 Mon Sep 17 00:00:00 2001 From: Italo Nicola Date: Sun, 7 Aug 2022 13:30:19 +0000 Subject: [PATCH] rusticl: fix MemConstant invalid arg size check As a memory object, the MemConstant check should be the same as MemGlobal. Signed-off-by: Italo Nicola Reviewed-by: Karol Herbst Part-of: --- src/gallium/frontends/rusticl/api/kernel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/api/kernel.rs b/src/gallium/frontends/rusticl/api/kernel.rs index d635829..2e793a8 100644 --- a/src/gallium/frontends/rusticl/api/kernel.rs +++ b/src/gallium/frontends/rusticl/api/kernel.rs @@ -240,7 +240,7 @@ pub fn set_kernel_arg( return Err(CL_INVALID_ARG_SIZE); } } - KernelArgType::MemGlobal => { + KernelArgType::MemGlobal | KernelArgType::MemConstant => { if arg_size != std::mem::size_of::() { return Err(CL_INVALID_ARG_SIZE); } -- 2.7.4