From 37b0aa600ad47872d3a03f9e9fb60316fc3587c5 Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Thu, 8 Feb 2024 02:02:33 +0330 Subject: spirv: make rusticl the primary testing implementation --- src/codegen/spirv/Module.zig | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/codegen/spirv') 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; -- cgit v1.2.3