We have a new sampler arg type, so we have to add it to this
assertion condition check. Otherwise, it triggers an assertion
when met a sampler parameter.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Lu Guqanqun <guanqun.lu@intel.com>
arg.type == FunctionArgument::LOCAL_POINTER ||
arg.type == FunctionArgument::VALUE ||
arg.type == FunctionArgument::STRUCTURE ||
- arg.type == FunctionArgument::IMAGE);
+ arg.type == FunctionArgument::IMAGE ||
+ arg.type == FunctionArgument::SAMPLER);
allocatePayloadReg(GBE_CURBE_KERNEL_ARGUMENT, arg.reg, argID);
}