Skip to content

Commit b02a327

Browse files
hoshinolinajannau
authored andcommitted
drm/asahi: Add the USER_TIMESTAMPS feature
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 35657f5 commit b02a327

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/gpu/drm/asahi/file.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ impl File {
253253
unstable_uabi_version: uapi::DRM_ASAHI_UNSTABLE_UABI_VERSION,
254254
pad0: 0,
255255

256-
feat_compat: gpu.get_cfg().gpu_feat_compat | hw::feat::compat::GETTIME,
256+
feat_compat: gpu.get_cfg().gpu_feat_compat
257+
| hw::feat::compat::GETTIME
258+
| hw::feat::compat::USER_TIMESTAMPS,
257259
feat_incompat: gpu.get_cfg().gpu_feat_incompat,
258260

259261
gpu_generation: gpu.get_dyncfg().id.gpu_gen as u32,

drivers/gpu/drm/asahi/hw/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ pub(crate) mod feat {
9696
uapi::drm_asahi_feat_compat_DRM_ASAHI_FEAT_SOFT_FAULTS as u64;
9797
/// GETTIME API supported
9898
pub(crate) const GETTIME: u64 = uapi::drm_asahi_feat_compat_DRM_ASAHI_FEAT_GETTIME as u64;
99+
/// User timestamps extension supported
100+
pub(crate) const USER_TIMESTAMPS: u64 =
101+
uapi::drm_asahi_feat_compat_DRM_ASAHI_FEAT_USER_TIMESTAMPS as u64;
99102
}
100103

101104
/// Backwards-incompatible features.

0 commit comments

Comments
 (0)