aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Module.zig
diff options
context:
space:
mode:
authorAli Chraghi <alichraghi@proton.me>2024-02-08 02:02:33 +0330
committerAli Chraghi <alichraghi@proton.me>2024-02-09 09:27:08 +0330
commit37b0aa600ad47872d3a03f9e9fb60316fc3587c5 (patch)
treef10a2241876fdd27135a62a6112d0d98d0a5f8ef /src/codegen/spirv/Module.zig
parenteb2d61d02e503f01070c05e2e1fc87e827124d94 (diff)
downloadzig-37b0aa600ad47872d3a03f9e9fb60316fc3587c5.tar.gz
zig-37b0aa600ad47872d3a03f9e9fb60316fc3587c5.zip
spirv: make rusticl the primary testing implementation
Diffstat (limited to 'src/codegen/spirv/Module.zig')
-rw-r--r--src/codegen/spirv/Module.zig13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/codegen/spirv/Module.zig b/src/codegen/spirv/Module.zig
index 2c411b4590..eaefdb3a96 100644
--- a/src/codegen/spirv/Module.zig
+++ b/src/codegen/spirv/Module.zig
@@ -407,12 +407,12 @@ pub fn flush(self: *Module, file: std.fs.File, target: std.Target) !void {
var types_constants = try self.cache.materialize(self);
defer types_constants.deinit(self.gpa);
- // TODO: Vulkan doesn't support initializer kernel
- var init_func = if (target.os.tag != .vulkan)
- try self.initializer(&entry_points)
- else
- Section{};
- defer init_func.deinit(self.gpa);
+ // // TODO: Pass global variables as function parameters
+ // var init_func = if (target.os.tag != .vulkan)
+ // try self.initializer(&entry_points)
+ // else
+ // Section{};
+ // defer init_func.deinit(self.gpa);
const header = [_]Word{
spec.magic_number,
@@ -458,7 +458,6 @@ pub fn flush(self: *Module, file: std.fs.File, target: std.Target) !void {
self.sections.types_globals_constants.toWords(),
globals.toWords(),
self.sections.functions.toWords(),
- init_func.toWords(),
};
var iovc_buffers: [buffers.len]std.os.iovec_const = undefined;