From 6fd62215fabf55688ec84d29efb102d8dc2be5a9 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 21 Aug 2020 20:22:33 -0400 Subject: [PATCH] panfrost: Decode nested structs correctly Signed-off-by: Alyssa Rosenzweig Fixes: 75cc5b8c292 ("panfrost: Adopt gen_pack_header.py via v3d") Reviewed-by: Tomeu Vizoso Part-of: --- src/panfrost/lib/gen_pack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/gen_pack.py b/src/panfrost/lib/gen_pack.py index 0266838f623..59890f7cd8a 100644 --- a/src/panfrost/lib/gen_pack.py +++ b/src/panfrost/lib/gen_pack.py @@ -416,7 +416,7 @@ class Group(object): # Recurse for structs, see pack() for validation if field.type in self.parser.structs: pack_name = self.parser.gen_prefix(safe_name(field.type)).upper() - print(" {}_unpack(cl + {}, &values->{});".format(pack_name, field.start // 32, field.name)) + print(" {}_unpack(cl + {}, &values->{});".format(pack_name, field.start // 8, field.name)) continue convert = None -- 2.30.2