Skip to content

switcheroo shim incorrectly populates Discrete key #143

Description

@Jan200101

// "Default" (b)
dict.insert("Default", OwnedValue::from(gpu.device.is_default()));
// "Discrete" (b)
dict.insert("Discrete", OwnedValue::from(!gpu.device.is_default()));

The Discrete key is incorrectly populated with !default instead of properly checking if a given device is discrete or not.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions