SEMANTICS_VERSION 2002 for a front_facing argument held in an integer

nvreds 0950743006: an older front end's i8 [[front_facing]] argument
(i8 + trunc to i1, seen in an iOS-simulator library from metalfe-32023.884)
now translates: the Bool builtin is OpSelect'ed to 1/0 in the argument's
integer form. Inputs that were refused now translate, so SEMANTICS 2001 ->
2002. Golden hashes expected unchanged (no committed fixture has an integer
front_facing; not checked here).

Verified by nvreds on gem10 (debug): clippy -D warnings for metal2vulkan and
metal2vulkan-air, all targets/features; 100/100 tests over front_facing,
stage_io, engine_fragment, air_abi, engine_line_band (11689); negative control
4dd15ecbd1 fails the new engine_front_facing_byte test with the reported
refusal (11690). Here: signatures --check and refusal surface unchanged.
This commit is contained in:
Anees Iqbal committed 2026-11-09 05:05:54 -08:00
1 parent 7c6e9d1fcf
commit 612f5dcfba
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ mod tests;
/// unchanged version, and its bless records the version. Independent of the crate's version and of
/// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no
/// history.
pub const SEMANTICS_VERSION: u32 = 2001;
pub const SEMANTICS_VERSION: u32 = 2002;
/// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the
/// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another