chore: bump libdrm-amdgpu

This commit is contained in:
Ilya Zlobintsev
2026-05-28 09:11:27 +03:00
parent e5c5822f3b
commit 8d2536da65
4 changed files with 10 additions and 12 deletions
Generated
+2 -2
View File
@@ -1848,9 +1848,9 @@ dependencies = [
[[package]]
name = "libdrm_amdgpu_sys"
version = "0.8.14"
version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3b63f219bdee8484c65e0f54f81b6c671f1ab433f460e40c3174dea688abf31b"
checksum = "1e11704169b7b5a043ec5627aa0433019cf67d07f233002e1233edf67c2e662b"
dependencies = [
"libc",
"libloading",
+6 -6
View File
@@ -2173,14 +2173,14 @@
{
"type": "archive",
"archive-type": "tar-gzip",
"url": "https://static.crates.io/crates/libdrm_amdgpu_sys/libdrm_amdgpu_sys-0.8.14.crate",
"sha256": "3b63f219bdee8484c65e0f54f81b6c671f1ab433f460e40c3174dea688abf31b",
"dest": "cargo/vendor/libdrm_amdgpu_sys-0.8.14"
"url": "https://static.crates.io/crates/libdrm_amdgpu_sys/libdrm_amdgpu_sys-0.8.16.crate",
"sha256": "1e11704169b7b5a043ec5627aa0433019cf67d07f233002e1233edf67c2e662b",
"dest": "cargo/vendor/libdrm_amdgpu_sys-0.8.16"
},
{
"type": "inline",
"contents": "{\"package\": \"3b63f219bdee8484c65e0f54f81b6c671f1ab433f460e40c3174dea688abf31b\", \"files\": {}}",
"dest": "cargo/vendor/libdrm_amdgpu_sys-0.8.14",
"contents": "{\"package\": \"1e11704169b7b5a043ec5627aa0433019cf67d07f233002e1233edf67c2e662b\", \"files\": {}}",
"dest": "cargo/vendor/libdrm_amdgpu_sys-0.8.16",
"dest-filename": ".cargo-checksum.json"
},
{
@@ -5361,4 +5361,4 @@
"dest": "cargo",
"dest-filename": "config"
}
]
]
+1 -1
View File
@@ -37,7 +37,7 @@ nvml-wrapper = "0.12.1"
bitflags = "2.11.1"
pciid-parser = { version = "0.8", features = ["serde"] }
zbus = { version = "5.14.0", default-features = false, features = ["tokio"] }
libdrm_amdgpu_sys = { version = "0.8.13", default-features = false, features = [
libdrm_amdgpu_sys = { version = "0.8.16", default-features = false, features = [
"dynamic_loading",
] }
tar = "0.4.45"
+1 -3
View File
@@ -1427,8 +1427,6 @@ fn get_drm_handle(
common: &CommonControllerInfo,
libdrm_amdgpu: &LibDrmAmdgpu,
) -> anyhow::Result<DrmHandle> {
use std::os::unix::io::AsRawFd;
let path = common.get_drm_render()?;
let drm_file = fs::OpenOptions::new()
.read(true)
@@ -1436,7 +1434,7 @@ fn get_drm_handle(
.open(&path)
.with_context(|| format!("Could not open drm file at {}", path.display()))?;
let (handle, _, _) = libdrm_amdgpu
.init_device_handle(drm_file.as_raw_fd())
.init_device_handle_with_fd(drm_file)
.map_err(|err| anyhow!("Could not open drm handle, error code {err}"))?;
Ok(handle)
}