panfrost: gen_pack: Allow empty structs
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 6 Sep 2020 08:50:16 +0000 (10:50 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 21 Sep 2020 11:34:51 +0000 (07:34 -0400)
commit1b27817f17551a24a24692f4a2821d539de00a3d
treec3549d2ae6e213cee96d829a87a347145d97a468
parentc7a10193d42bdc01a9fbe771f3afb927d4f1640d
panfrost: gen_pack: Allow empty structs

This is useful if we want to declare padding sections which can be
packed (filled with zeros) and unpacked (checked for non zero entries).

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6797>
src/panfrost/lib/gen_pack.py