[Beignet] [PATCH 5/8] BDW: BDW don't need add slm offset, remove it.

Yang Rong rong.r.yang at intel.com
Sun Sep 28 22:38:34 PDT 2014


Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
 backend/src/backend/gen8_context.cpp       | 15 ++-------------
 backend/src/backend/gen_insn_selection.cpp |  1 -
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/backend/src/backend/gen8_context.cpp b/backend/src/backend/gen8_context.cpp
index 7247682..a8bed64 100644
--- a/backend/src/backend/gen8_context.cpp
+++ b/backend/src/backend/gen8_context.cpp
@@ -36,22 +36,11 @@
 namespace gbe
 {
   void Gen8Context::emitSLMOffset(void) {
-    if(kernel->getUseSLM() == false)
-      return;
-
-    const GenRegister slm_offset = ra->genReg(GenRegister::ud1grf(ir::ocl::slmoffset));
-    const GenRegister slm_index = GenRegister::ud1grf(0, 0);
-    //the slm index is hold in r0.0 24-27 bit, in 4K unit, shift left 12 to get byte unit
-    p->push();
-      p->curr.execWidth = 1;
-      p->curr.predicate = GEN_PREDICATE_NONE;
-      p->SHR(slm_offset, slm_index, GenRegister::immud(12));
-    p->pop();
+    return;
   }
 
   void Gen8Context::allocSLMOffsetCurbe(void) {
-    if(fn.getUseSLM())
-      allocCurbeReg(ir::ocl::slmoffset, GBE_CURBE_SLM_OFFSET);
+    return;
   }
 
   uint32_t Gen8Context::alignScratchSize(uint32_t size){
diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index dc10fa4..8e76ce8 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -1672,7 +1672,6 @@ namespace gbe
   }
 
   Selection8::Selection8(GenContext &ctx) : Selection(ctx) {
-    this->opaque->setPatchSLMAddr(true);
     this->opaque->setHas32X32Mul(true);
   }
 
-- 
1.8.3.2



More information about the Beignet mailing list