mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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:
parent
33676d8296
commit
2ed6ff728a
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue