[Beignet] [PATCH 1/2] GBE: Fix a typo that cause gpu hang.
Ruiling Song
ruiling.song at intel.com
Sun May 31 18:43:06 PDT 2015
Signed-off-by: Ruiling Song <ruiling.song at intel.com>
---
backend/src/backend/gen75_encoder.cpp | 2 +-
backend/src/backend/gen8_encoder.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/src/backend/gen75_encoder.cpp b/backend/src/backend/gen75_encoder.cpp
index 602f9c7..135be02 100644
--- a/backend/src/backend/gen75_encoder.cpp
+++ b/backend/src/backend/gen75_encoder.cpp
@@ -203,7 +203,7 @@ namespace gbe
GenNativeInstruction *insn = this->next(GEN_OPCODE_SEND);
assert(elemNum >= 1 || elemNum <= 4);
this->setHeader(insn);
- insn->header.destreg_or_condmod = GEN_SFID_DATAPORT_DATA;
+ insn->header.destreg_or_condmod = GEN_SFID_DATAPORT1_DATA;
if (this->curr.execWidth == 8) {
this->setDst(insn, GenRegister::retype(GenRegister::null(), GEN_TYPE_UD));
} else if (this->curr.execWidth == 16) {
diff --git a/backend/src/backend/gen8_encoder.cpp b/backend/src/backend/gen8_encoder.cpp
index fd35838..69eabb2 100644
--- a/backend/src/backend/gen8_encoder.cpp
+++ b/backend/src/backend/gen8_encoder.cpp
@@ -210,7 +210,7 @@ namespace gbe
GenNativeInstruction *insn = this->next(GEN_OPCODE_SEND);
assert(elemNum >= 1 || elemNum <= 4);
this->setHeader(insn);
- insn->header.destreg_or_condmod = GEN_SFID_DATAPORT_DATA;
+ insn->header.destreg_or_condmod = GEN_SFID_DATAPORT1_DATA;
if (this->curr.execWidth == 8) {
this->setDst(insn, GenRegister::retype(GenRegister::null(), GEN_TYPE_UD));
} else if (this->curr.execWidth == 16) {
--
2.1.0
More information about the Beignet
mailing list