gpu/intel: report all devices via next_device

The former implementation relied on the behaviour of how the old
intel fb driver requested the pci devices. The new lxkit however actually
really want to have all available pci devices.

Issue #4450
This commit is contained in:
Alexander Boettcher 2022-03-17 15:06:33 +01:00 committed by Christian Helmuth
parent 2548830140
commit 7813fca946

View File

@ -266,9 +266,15 @@ class Platform::Session_component : public Rpc_object<Session>
Device_capability next_device(Device_capability prev_device,
unsigned, unsigned) override
{
if (!prev_device.valid())
return _bridge;
if (prev_device == _bridge)
return _device_component.cap();
if (prev_device == _device_component.cap())
return _resources.isa_bridge_cap();
return Device_capability();
}