[Beignet] [PATCH] Fix a indirect register bug.
Yang Rong
rong.r.yang at intel.com
Sun May 17 22:51:45 PDT 2015
Must init the fields indirect register used.
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
backend/src/backend/gen_register.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp
index 80e143e..794498e 100644
--- a/backend/src/backend/gen_register.hpp
+++ b/backend/src/backend/gen_register.hpp
@@ -837,8 +837,9 @@ namespace gbe
reg.file = GEN_GENERAL_REGISTER_FILE;
reg.address_mode = GEN_ADDRESS_REGISTER_INDIRECT_REGISTER;
reg.width = width;
- reg.subnr = subnr;
+ reg.a0_subnr = subnr;
reg.nr = 0;
+ reg.addr_imm = 0;
reg.negation = 0;
reg.absolute = 0;
reg.vstride = vstride;
--
1.8.3.2
More information about the Beignet
mailing list