From: Zhigang Gong Date: Wed, 16 Jan 2013 07:54:05 +0000 (+0800) Subject: Fix the assertion condition check. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e762be12c9054a2387765792c5b465a092cafdd;p=contrib%2Fbeignet.git Fix the assertion condition check. 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 Reviewed-by: Lu Guqanqun --- diff --git a/backend/src/backend/gen_reg_allocation.cpp b/backend/src/backend/gen_reg_allocation.cpp index 2e9b803..d6fdecb 100644 --- a/backend/src/backend/gen_reg_allocation.cpp +++ b/backend/src/backend/gen_reg_allocation.cpp @@ -543,7 +543,8 @@ namespace gbe 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); }