brw: explicitly pad tgl_swsb

This lets us treat it as a packed data structure without worrying about garbage.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40829>
This commit is contained in:
Alyssa Rosenzweig 2025-11-27 17:57:10 -05:00 committed by Marge Bot
parent 33676d8296
commit 2ed6ff728a

View file

@ -943,7 +943,9 @@ struct tgl_swsb {
enum tgl_pipe pipe : 3;
unsigned sbid : 5;
enum tgl_sbid_mode mode : 3;
};
unsigned pad : 2;
} PACKED;
static_assert(sizeof(struct tgl_swsb) == 2, "packed");
/**
* Construct a scheduling annotation with a single RegDist dependency. This