Fix the assertion condition check.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 16 Jan 2013 07:54:05 +0000 (15:54 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 06:51:32 +0000 (14:51 +0800)
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>
backend/src/backend/gen_reg_allocation.cpp

index 2e9b803..d6fdecb 100644 (file)
@@ -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);
     }