asahi/genxml: fix 0 encoding for groups

this was breaking launch word merging.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32320>
This commit is contained in:
Alyssa Rosenzweig 2024-11-23 21:56:40 -05:00 committed by Marge Bot
parent 65cc99a916
commit a34b3ecb75

View file

@ -120,7 +120,7 @@ class Field(object):
self.default = mod[1]
elif mod[0] == 'groups':
# The zero encoding means "all"
self.default = 1 << int(attrs["size"])
self.default = (1 << int(attrs["size"])) * mod[1]
elif mod[0] in ['shr', 'align']:
# Zero encodes to zero
pass