[Beignet] [PATCH] initialize GenRegister::subphysical
Homer Hsing
homer.xing at intel.com
Mon Oct 28 03:45:07 CET 2013
GenRegister::subphysical should have same init value as GenRegister::physical
Signed-off-by: Homer Hsing <homer.xing at intel.com>
---
backend/src/backend/gen_register.hpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp
index 538f16c..66bc288 100644
--- a/backend/src/backend/gen_register.hpp
+++ b/backend/src/backend/gen_register.hpp
@@ -185,6 +185,7 @@ namespace gbe
this->type = type;
this->file = file;
this->physical = 0;
+ this->subphysical = 0;
this->value.reg = reg;
this->negation = 0;
this->absolute = 0;
@@ -209,6 +210,7 @@ namespace gbe
this->file = file;
this->nr = nr;
this->physical = 1;
+ this->subphysical = 1;
this->subnr = subnr * typeSize(type);
this->negation = 0;
this->absolute = 0;
--
1.8.3.2
More information about the Beignet
mailing list