mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
feat: bump amdgpu-sysfs with fix for https://github.com/ilya-zlobintsev/LACT/issues/367
This commit is contained in:
parent
54ef929b1a
commit
92fad92e37
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -53,9 +53,9 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f"
|
||||
|
||||
[[package]]
|
||||
name = "amdgpu-sysfs"
|
||||
version = "0.16.1"
|
||||
version = "0.17.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "13879cbb65d9f6ebfb4e15a4096fefe442c45b4b93f7b273673d56e50aec3c5a"
|
||||
checksum = "2175fc4ea95f486dfe93f657b3447cb58caed82d7d5fd3bcfdffdf6888ffce15"
|
||||
dependencies = [
|
||||
"enum_dispatch",
|
||||
"serde",
|
||||
|
@ -10,7 +10,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.dependencies]
|
||||
amdgpu-sysfs = { version = "0.16.1", features = ["serde"] }
|
||||
amdgpu-sysfs = { version = "0.17.0", features = ["serde"] }
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_with = { version = "3.5.0", default-features = false, features = [
|
||||
"macros",
|
||||
|
@ -745,10 +745,11 @@ impl GpuController {
|
||||
.ok();
|
||||
|
||||
if config.is_core_clocks_used() {
|
||||
let mut table = self
|
||||
let original_table = self
|
||||
.handle
|
||||
.get_clocks_table()
|
||||
.context("Failed to get clocks table")?;
|
||||
let mut table = original_table.clone();
|
||||
config
|
||||
.clocks_configuration
|
||||
.apply_to_table(&mut table)
|
||||
@ -757,7 +758,7 @@ impl GpuController {
|
||||
debug!(
|
||||
"writing clocks commands: {:#?}",
|
||||
table
|
||||
.get_commands()
|
||||
.get_commands(&original_table)
|
||||
.context("Failed to get table commands")?
|
||||
);
|
||||
|
||||
@ -765,7 +766,12 @@ impl GpuController {
|
||||
.handle
|
||||
.set_clocks_table(&table)
|
||||
.context("Could not write clocks table")
|
||||
.with_context(|| format!("Clocks table commands: {:?}", table.get_commands()))?;
|
||||
.with_context(|| {
|
||||
format!(
|
||||
"Clocks table commands: {:?}",
|
||||
table.get_commands(&original_table)
|
||||
)
|
||||
})?;
|
||||
commit_handles.push(handle);
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ impl PowerProfileHeuristicsGrid {
|
||||
let name = &table.value_names[i];
|
||||
|
||||
let name_label = Label::builder()
|
||||
.label(&format!("{name}:"))
|
||||
.label(format!("{name}:"))
|
||||
.hexpand(true)
|
||||
.halign(gtk::Align::Start)
|
||||
.build();
|
||||
|
Loading…
Reference in New Issue
Block a user