GenRegister::subphysical should have same init value as GenRegister::physical
Signed-off-by: Homer Hsing <[email protected]>
---
 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

_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to