fixing varyings
Test / build_and_test (push) Failing after 29s
Build / build (push) Successful in 43s

This commit is contained in:
2026-07-01 21:27:05 +02:00
parent 75637b7177
commit cb6af550e2
9 changed files with 144 additions and 21 deletions
+7
View File
@@ -60,6 +60,8 @@ fn destroy(interface: *Interface, allocator: std.mem.Allocator) VkError!void {
const self: *Self = @alignCast(@fieldParentPtr("interface", interface));
self.threaded.deinit();
allocator.destroy(self);
mic.unload();
}
fn requestPhysicalDevices(interface: *Interface, allocator: std.mem.Allocator, _: []base.drm.Card) VkError!void {
@@ -67,6 +69,11 @@ fn requestPhysicalDevices(interface: *Interface, allocator: std.mem.Allocator, _
return;
}
mic.load() catch |err| {
std.log.scoped(.MIC).err("Failed to load libmicmgmt: {s}", .{@errorName(err)});
return VkError.InitializationFailed;
};
var devices = mic.DeviceList.init() catch |err| {
std.log.scoped(.MIC).err("Failed to create device list: {s}", .{@errorName(err)});
return VkError.InitializationFailed;
+1 -1
View File
@@ -56,7 +56,7 @@ pub fn create(allocator: std.mem.Allocator, instance: *base.Instance, mic_device
interface.props.api_version = @bitCast(lib.VULKAN_VERSION);
interface.props.driver_version = @bitCast(base.DRIVER_VERSION);
interface.props.device_type = .discrete_gpu;
interface.props.device_type = .other;
@memset(interface.props.device_name[0..], 0);