aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Module.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen/spirv/Module.zig')
-rw-r--r--src/codegen/spirv/Module.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/codegen/spirv/Module.zig b/src/codegen/spirv/Module.zig
index 691749bf1d..20bf1b3670 100644
--- a/src/codegen/spirv/Module.zig
+++ b/src/codegen/spirv/Module.zig
@@ -190,12 +190,12 @@ entry_points: std.AutoArrayHashMapUnmanaged(IdRef, EntryPoint) = .empty,
pub fn init(gpa: Allocator, target: std.Target) Module {
const version_minor: u8 = blk: {
// Prefer higher versions
- if (std.Target.spirv.featureSetHas(target.cpu.features, .v1_6)) break :blk 6;
- if (std.Target.spirv.featureSetHas(target.cpu.features, .v1_5)) break :blk 5;
- if (std.Target.spirv.featureSetHas(target.cpu.features, .v1_4)) break :blk 4;
- if (std.Target.spirv.featureSetHas(target.cpu.features, .v1_3)) break :blk 3;
- if (std.Target.spirv.featureSetHas(target.cpu.features, .v1_2)) break :blk 2;
- if (std.Target.spirv.featureSetHas(target.cpu.features, .v1_1)) break :blk 1;
+ if (target.cpu.has(.spirv, .v1_6)) break :blk 6;
+ if (target.cpu.has(.spirv, .v1_5)) break :blk 5;
+ if (target.cpu.has(.spirv, .v1_4)) break :blk 4;
+ if (target.cpu.has(.spirv, .v1_3)) break :blk 3;
+ if (target.cpu.has(.spirv, .v1_2)) break :blk 2;
+ if (target.cpu.has(.spirv, .v1_1)) break :blk 1;
break :blk 0;
};
@@ -268,7 +268,7 @@ pub fn idBound(self: Module) Word {
}
pub fn hasFeature(self: *Module, feature: std.Target.spirv.Feature) bool {
- return std.Target.spirv.featureSetHas(self.target.cpu.features, feature);
+ return self.target.cpu.has(.spirv, feature);
}
fn addEntryPointDeps(