mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
nak: Update comment about explicit padding
The bindgen thing is not used anymore and NAK_SHADER_INFO_STAGE_UNION_SIZE is not defined anywhere. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30094>
This commit is contained in:
parent
43438aa9c4
commit
898752818c
1 changed files with 1 additions and 9 deletions
|
|
@ -85,15 +85,7 @@ struct nak_xfb_info {
|
|||
};
|
||||
|
||||
/* This struct MUST have explicit padding fields to ensure that all padding is
|
||||
* zeroed and the zeros get properly copied, even across API boundaries. This
|
||||
* is ensured in two ways:
|
||||
*
|
||||
* - Bindgen is invoked with --explicit-padding and if a __bindgen_paddingN
|
||||
* member ever crops up, that tells us we need to add an explicit member
|
||||
* here.
|
||||
*
|
||||
* - There is a set of const asserts in nak/api.rs which ensure that all of
|
||||
* the union fields are equal to NAK_SHADER_INFO_STAGE_UNION_SIZE.
|
||||
* zeroed and the zeros get properly copied, even across API boundaries.
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic error "-Wpadded"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue