From 898752818cc0386957fe071068aad698b5ff4eec Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 9 Jul 2024 14:41:06 +0200 Subject: [PATCH] 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 Part-of: --- src/nouveau/compiler/nak.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/nouveau/compiler/nak.h b/src/nouveau/compiler/nak.h index b8affd1f4e7..fcd653ef1b2 100644 --- a/src/nouveau/compiler/nak.h +++ b/src/nouveau/compiler/nak.h @@ -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"