suboffset() will not set .subnr correctly, as vec1() will get a horizontal stride 0 register.
Signed-off-by: Ruiling Song <[email protected]> --- backend/src/backend/gen_register.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp index 4f37e30..db16273 100644 --- a/backend/src/backend/gen_register.hpp +++ b/backend/src/backend/gen_register.hpp @@ -1019,7 +1019,13 @@ namespace gbe } static INLINE GenRegister ub1(uint32_t file, uint32_t nr, uint32_t subnr) { - return suboffset(retype(vec1(file, nr, 0), GEN_TYPE_UB), subnr); + return GenRegister(file, + nr, + subnr, + GEN_TYPE_UB, + GEN_VERTICAL_STRIDE_0, + GEN_WIDTH_1, + GEN_HORIZONTAL_STRIDE_0); } static INLINE GenRegister f1grf(uint32_t nr, uint32_t subnr) { -- 2.3.1 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
