diff --git a/internal/graphicsdriver/metal/mtl/mtl.go b/internal/graphicsdriver/metal/mtl/mtl.go index 68e3370fb..119d3c5cc 100644 --- a/internal/graphicsdriver/metal/mtl/mtl.go +++ b/internal/graphicsdriver/metal/mtl/mtl.go @@ -381,12 +381,6 @@ type Device struct { // LowPower indicates whether a device is low-power. LowPower bool - // Removable determines whether or not a GPU is removable. - Removable bool - - // RegistryID is the registry ID value for the device. - RegistryID uint64 - // Name is the name of the device. Name string } @@ -401,12 +395,10 @@ func CreateSystemDefaultDevice() (Device, error) { } return Device{ - device: d.Device, - Headless: d.Headless != 0, - LowPower: d.LowPower != 0, - Removable: d.Removable != 0, - RegistryID: uint64(d.RegistryID), - Name: C.GoString(d.Name), + device: d.Device, + Headless: d.Headless != 0, + LowPower: d.LowPower != 0, + Name: C.GoString(d.Name), }, nil } @@ -424,8 +416,6 @@ func CopyAllDevices() []Device { ds[i].device = d.Device ds[i].Headless = d.Headless != 0 ds[i].LowPower = d.LowPower != 0 - ds[i].Removable = d.Removable != 0 - ds[i].RegistryID = uint64(d.RegistryID) ds[i].Name = C.GoString(d.Name) } return ds diff --git a/internal/graphicsdriver/metal/mtl/mtl.m b/internal/graphicsdriver/metal/mtl/mtl.m index 3afb7239f..f8e2ea5a6 100644 --- a/internal/graphicsdriver/metal/mtl/mtl.m +++ b/internal/graphicsdriver/metal/mtl/mtl.m @@ -30,8 +30,6 @@ struct Device CreateSystemDefaultDevice() { d.Device = device; d.Headless = device.headless; d.LowPower = device.lowPower; - d.Removable = device.removable; - d.RegistryID = device.registryID; d.Name = device.name.UTF8String; return d; } @@ -46,8 +44,6 @@ struct Devices CopyAllDevices() { d.Devices[i].Device = devices[i]; d.Devices[i].Headless = devices[i].headless; d.Devices[i].LowPower = devices[i].lowPower; - d.Devices[i].Removable = devices[i].removable; - d.Devices[i].RegistryID = devices[i].registryID; d.Devices[i].Name = devices[i].name.UTF8String; } d.Length = devices.count;