|
|
@ -40,7 +40,7 @@ fn test_i915_uapi_native_engine_info() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
#[test]
|
|
|
|
fn test_i915_find_fd() {
|
|
|
|
fn test_i915_uapi_find_fd() {
|
|
|
|
let fd = i915::find_fd().expect("Failed to find i915 fd");
|
|
|
|
let fd = i915::find_fd().expect("Failed to find i915 fd");
|
|
|
|
let drm_version = uapi::get_drm_version(fd.as_raw_fd()).expect("Failed to get drm version");
|
|
|
|
let drm_version = uapi::get_drm_version(fd.as_raw_fd()).expect("Failed to get drm version");
|
|
|
|
assert_eq!(drm_version.name.to_str().unwrap(), "i915");
|
|
|
|
assert_eq!(drm_version.name.to_str().unwrap(), "i915");
|
|
|
|