mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
feat: report resizeable bar on nvidia
This commit is contained in:
@@ -329,10 +329,13 @@ impl GpuController for NvidiaGpuController {
|
|||||||
l3_cache_mb: None,
|
l3_cache_mb: None,
|
||||||
memory_info: device
|
memory_info: device
|
||||||
.bar1_memory_info()
|
.bar1_memory_info()
|
||||||
.map(|info| DrmMemoryInfo {
|
.map(|bar_info| DrmMemoryInfo {
|
||||||
cpu_accessible_used: info.used,
|
cpu_accessible_used: bar_info.used,
|
||||||
cpu_accessible_total: info.total,
|
cpu_accessible_total: bar_info.total,
|
||||||
resizeable_bar: None,
|
resizeable_bar: device
|
||||||
|
.memory_info()
|
||||||
|
.ok()
|
||||||
|
.map(|memory_info| bar_info.total >= memory_info.total),
|
||||||
})
|
})
|
||||||
.ok(),
|
.ok(),
|
||||||
intel: IntelDrmInfo::default(),
|
intel: IntelDrmInfo::default(),
|
||||||
|
|||||||
Reference in New Issue
Block a user