fixing vertex outputs
Test / build_and_test (push) Successful in 2m19s
Build / build (push) Successful in 4m2s

This commit is contained in:
2026-07-02 21:00:56 +02:00
parent 23c3731f06
commit d4ac14ae92
22 changed files with 259 additions and 85 deletions
+14 -1
View File
@@ -76,7 +76,20 @@ fn requestPhysicalDevices(interface: *Interface, allocator: std.mem.Allocator, d
drm_device.device_info.pci.vendor_id != lib.INTEL_PCI_VENDOR_ID)
continue;
const physical_device = try FlintPhysicalDevice.create(allocator, interface, &drm_device);
const version = device.getVersion(io_var, allocator) catch continue;
defer version.deinit(allocator);
const kmd_type: lib.KmdType = if (std.mem.eql(u8, version.name, "i915"))
.I915
else if (std.mem.eql(u8, version.name, "xe"))
.Xe
else
.Invalid;
if (kmd_type == .Invalid)
continue;
const physical_device = try FlintPhysicalDevice.create(allocator, interface, &drm_device, kmd_type);
errdefer physical_device.interface.release(allocator) catch {};
const dispatchable = try Dispatchable(base.PhysicalDevice).wrap(allocator, &physical_device.interface);