From 2def70c5dec872e33d75d4232b1937a89665c761 Mon Sep 17 00:00:00 2001 From: Ilya Zlobintsev Date: Tue, 31 Dec 2024 12:19:11 +0200 Subject: [PATCH] feat: show EUs and subslices in UI --- lact-gui/src/app/pages/info_page/hardware_info.rs | 11 +++++++++++ lact-gui/ui/info_page/hardware_info_section.blp | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/lact-gui/src/app/pages/info_page/hardware_info.rs b/lact-gui/src/app/pages/info_page/hardware_info.rs index 5db7034..1b79ace 100644 --- a/lact-gui/src/app/pages/info_page/hardware_info.rs +++ b/lact-gui/src/app/pages/info_page/hardware_info.rs @@ -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, #[property(get, set)] + execution_units: RefCell, + #[property(get, set)] + subslices: RefCell, + #[property(get, set)] cuda_cores: RefCell, #[property(get, set)] vbios_version: RefCell, diff --git a/lact-gui/ui/info_page/hardware_info_section.blp b/lact-gui/ui/info_page/hardware_info_section.blp index 9138da5..c33447a 100644 --- a/lact-gui/ui/info_page/hardware_info_section.blp +++ b/lact-gui/ui/info_page/hardware_info_section.blp @@ -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;