[Beignet] [PATCH 1/3] do not touch src1 when setting instruction header
Guo, Yejun
yejun.guo at intel.com
Mon Nov 28 05:25:41 UTC 2016
Signed-off-by: Guo, Yejun <yejun.guo at intel.com>
---
backend/src/backend/gen9_encoder.cpp | 1 +
backend/src/backend/gen_encoder.cpp | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/backend/src/backend/gen9_encoder.cpp b/backend/src/backend/gen9_encoder.cpp
index 80df50d..e66ae08 100644
--- a/backend/src/backend/gen9_encoder.cpp
+++ b/backend/src/backend/gen9_encoder.cpp
@@ -60,6 +60,7 @@ namespace gbe
this->setHeader(insn);
this->setDst(insn, dest);
this->setSrc0(insn, msg);
+ this->setSrc1(insn, GenRegister::immud(0));
setSamplerMessage(insn, bti, sampler, msg_type,
response_length, msg_length,
header_present,
diff --git a/backend/src/backend/gen_encoder.cpp b/backend/src/backend/gen_encoder.cpp
index a69adc7..060d65f 100644
--- a/backend/src/backend/gen_encoder.cpp
+++ b/backend/src/backend/gen_encoder.cpp
@@ -203,7 +203,6 @@ namespace gbe
unsigned msg_length, unsigned response_length,
bool header_present, bool end_of_thread)
{
- setSrc1(inst, GenRegister::immud(0));
inst->bits3.generic_gen5.header_present = header_present;
inst->bits3.generic_gen5.response_length = response_length;
inst->bits3.generic_gen5.msg_length = msg_length;
@@ -1178,6 +1177,7 @@ namespace gbe
this->setHeader(insn);
this->setDst(insn, dest);
this->setSrc0(insn, msg);
+ this->setSrc1(insn, GenRegister::immud(0));
setSamplerMessage(insn, bti, sampler, msg_type,
response_length, msg_length,
header_present,
--
1.9.1
More information about the Beignet
mailing list