mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel/IntelGraphics: Add Generation enum to the Definitions file
This will be used to annotate which Generation is being used for each Intel iGPU we discover.
This commit is contained in:
parent
8042ae43c3
commit
e393071a9b
Notes:
sideshowbarker
2024-07-17 00:00:03 +09:00
Author: https://github.com/supercomputer7
Commit: e393071a9b
Pull-request: https://github.com/SerenityOS/serenity/pull/17283
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 13 additions and 12 deletions
|
@ -54,10 +54,9 @@ ErrorOr<void> IntelNativeGraphicsAdapter::initialize_adapter()
|
|||
PCI::enable_io_space(device_identifier());
|
||||
PCI::enable_memory_space(device_identifier());
|
||||
|
||||
using Generation = IntelDisplayConnectorGroup::Generation;
|
||||
switch (device_identifier().hardware_id().device_id) {
|
||||
case 0x29c2:
|
||||
m_connector_group = TRY(IntelDisplayConnectorGroup::try_create({}, Generation::Gen4, first_region, second_region));
|
||||
m_connector_group = TRY(IntelDisplayConnectorGroup::try_create({}, IntelGraphics::Generation::Gen4, first_region, second_region));
|
||||
return {};
|
||||
default:
|
||||
return Error::from_errno(ENODEV);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue