feat: show EUs and subslices in UI

This commit is contained in:
Ilya Zlobintsev 2024-12-31 12:19:11 +02:00
parent 1795ec9532
commit 2def70c5de
2 changed files with 23 additions and 0 deletions

View File

@ -112,6 +112,13 @@ impl HardwareInfoSection {
memory_info.cpu_accessible_total / 1024 / 1024
));
}
if let Some(units) = drm_info.intel.execution_units {
self.set_execution_units(units.to_string());
}
if let Some(subslices) = drm_info.intel.subslices {
self.set_subslices(subslices.to_string());
}
}
self.set_driver_used(info.driver.as_str());
@ -179,6 +186,10 @@ mod imp {
#[property(get, set)]
compute_units: RefCell<String>,
#[property(get, set)]
execution_units: RefCell<String>,
#[property(get, set)]
subslices: RefCell<String>,
#[property(get, set)]
cuda_cores: RefCell<String>,
#[property(get, set)]
vbios_version: RefCell<String>,

View File

@ -42,6 +42,18 @@ template $HardwareInfoSection: $PageSection {
selectable: true;
}
$InfoRow {
name: "Execution Units:";
value: bind template.execution_units;
selectable: true;
}
$InfoRow {
name: "Subslices:";
value: bind template.subslices;
selectable: true;
}
$InfoRow {
name: "Cuda Cores:";
value: bind template.cuda_cores;