mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-17 16:34:54 -05:00
chore: bump libdrm-amdgpu
This commit is contained in:
Generated
+2
-2
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
]
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user