summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2013-01-16 15:54:05 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-04-10 14:51:32 +0800
commit6e762be12c9054a2387765792c5b465a092cafdd (patch)
tree9451fe32136ca0776927f97fa3a46fd23f76f431
parentbb28f9a1f822449c63250cd6eefa3d6a1111a2b4 (diff)
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 <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guqanqun <guanqun.lu@intel.com>
-rw-r--r--backend/src/backend/gen_reg_allocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/src/backend/gen_reg_allocation.cpp b/backend/src/backend/gen_reg_allocation.cpp
index 2e9b803b..d6fdecb8 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);
}