Files
ReLibreHardwareMonitor/LibreHardwareMonitorLib/Hardware
David ReneltandPhyxionNL a792c26891 Add intel vram sensors (#2077)
* Add Intel Arc VRAM sensors support

- Implement BDF-based device matching for Intel discrete GPUs
- Add VRAM sensors (total, used, free, load percentage)
- Use D3D device enumeration with fallback logic
- Enable Windows-specific VRAM monitoring for Intel Arc GPUs
- Fix device identification to distinguish between multiple identical GPUs

Resolves issue where both Intel Arc GPUs showed identical VRAM values.
Now each GPU displays unique, accurate memory usage statistics.

* Add defensive validation to GetBdfFromDeviceIdentifier

- Add null/empty check for deviceIdentifier parameter
- Return false explicitly when LastIndexOf('#') returns -1
- Add DEVPROPTYPE.DEVPROP_TYPE_UINT32 validation after property queries
- Use sizeof(uint) instead of hardcoded 4 for buffer sizes
- Apply PCI spec bit masks (5-bit device, 3-bit function)
- Add bus range validation (0-255)

* Revert to Windows DEVPKEY_Device_Address spec masks

Use 0xFFFF masks as per Windows documentation instead of PCI spec
bit widths. The Windows API uses full 16-bit fields for device and
function numbers.

* Update IntelDiscreteGpu.cs

* Update NativeMethods.txt

---------

Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
2025-11-28 21:54:04 +01:00
..
2025-10-01 12:50:35 +02:00
2025-10-09 20:12:23 +02:00
2025-11-28 21:54:04 +01:00
2025-07-21 18:15:58 +02:00
2025-11-14 14:16:45 +01:00
2025-10-14 18:33:44 +02:00
2022-10-09 13:22:57 +02:00
2025-09-29 18:48:00 +02:00
2025-09-30 16:50:44 +02:00
2022-10-09 13:22:57 +02:00
2025-09-16 11:58:31 +02:00
2022-10-09 13:22:57 +02:00
2022-10-09 13:22:57 +02:00
2022-10-09 13:22:57 +02:00
2022-10-09 13:22:57 +02:00
2022-10-09 13:22:57 +02:00
2022-10-09 13:22:57 +02:00
2025-09-27 12:54:24 +02:00
2025-09-30 18:58:21 +02:00
2022-10-09 13:22:57 +02:00
2025-09-16 11:58:31 +02:00
2025-01-16 15:10:05 +01:00
2025-09-30 16:50:44 +02:00