Take REQUIRE_FULL_SUBGROUPS out of a one-row region's flags with difference

The vk flags type has no Not (E0600, msi job m3-max-4766); difference is
its set subtraction. Also names the byval pass's per-type plan CopyPlan,
which shadowed the Copy trait.

(cherry picked from commit 14f113d6b2db5bd71eda3ba85dabc595eb157c4e)
This commit is contained in:
Anees Iqbal committed 2026-11-07 11:43:22 -08:00
1 parent d597ee5e94
commit 885f806377
2 files changed
+6 -4

No files matched your search

+3 -3
View File
@@ -27,7 +27,7 @@ const MEMCPY: &[u8] = b"llvm.memcpy.p0.p0.i64";
/// What the copies of one `byval` type need: its alignment and its byte count as a constant.
#[derive(Clone, Copy)]
struct Copy {
struct CopyPlan {
align: Option<Align>,
len: Value,
}
@@ -35,7 +35,7 @@ struct Copy {
/// The constants and types every copy shares.
struct Shared {
/// By `byval` type.
copies: BTreeMap<TypeId, Copy>,
copies: BTreeMap<TypeId, CopyPlan>,
ptr: TypeId,
void: TypeId,
one: Value,
@@ -82,7 +82,7 @@ pub(super) fn explicit(parts: &mut ModuleParts, m: &mut Meter) -> Result<(), Err
let len = intern(parts, i64t, Const::Int(size), m)?;
copies.insert(
t,
Copy {
CopyPlan {
align: Align::from_bytes(align),
len,
},
+3 -1
View File
@@ -260,7 +260,9 @@ fn partial(rules: &LocalRules, r: [u32; 3]) -> bool {
/// `REQUIRE_FULL_SUBGROUPS` for a region that is not whole subgroups, a row [`partial`] admits.
fn region_flags(rules: &LocalRules, r: [u32; 3]) -> vk::PipelineShaderStageCreateFlags {
if unwhole(rules, r) {
rules.stage_flags & !vk::PipelineShaderStageCreateFlags::REQUIRE_FULL_SUBGROUPS
rules
.stage_flags
.difference(vk::PipelineShaderStageCreateFlags::REQUIRE_FULL_SUBGROUPS)
} else {
rules.stage_flags
}