From 23cbe6b0d573bb6e2a548d723a9f50155c6187da Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 15 Jun 2023 15:41:31 +0200 Subject: [PATCH] clc: add commment to clc_optional_features to ensure no padding exists Hopefully this is good enough. Signed-off-by: Karol Herbst Part-of: --- src/compiler/clc/clc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/clc/clc.h b/src/compiler/clc/clc.h index 690c3db0a45..de867cf1d6c 100644 --- a/src/compiler/clc/clc.h +++ b/src/compiler/clc/clc.h @@ -49,6 +49,7 @@ enum clc_spirv_version { CLC_SPIRV_VERSION_1_4, }; +// IMPORTANT: this struct is used for hashing and must not contain any padding. struct clc_optional_features { bool fp16; bool fp64;