[Beignet] [PATCH 2/2] Fix a build pushMap bug.

Yang Rong rong.r.yang at intel.com
Wed Dec 25 17:55:55 PST 2013


Insert the pushMap to set to avoid multiple push.

Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
 backend/src/ir/lowering.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/src/ir/lowering.cpp b/backend/src/ir/lowering.cpp
index 013878c..23dd120 100644
--- a/backend/src/ir/lowering.cpp
+++ b/backend/src/ir/lowering.cpp
@@ -238,6 +238,7 @@ namespace ir {
         if (offset != 0) {
             pushed = fn->newRegister(family);
             this->appendPushedConstant(pushed, argLocation);
+            inserted.insert(argLocation);
         } else {
             pushed = fn->getArg(loadAddImm.argID).reg;
         }
-- 
1.8.1.2



More information about the Beignet mailing list