drivers/graphics/driver-graphics: Report dummy TILE property for connectors
This commit is contained in:
@@ -9,7 +9,7 @@ use drm_sys::{
|
||||
use syscall::Result;
|
||||
|
||||
use crate::kms::objects::{KmsObjectId, KmsObjects};
|
||||
use crate::kms::properties::{define_object_props, KmsPropertyData, CRTC_ID, DPMS, EDID};
|
||||
use crate::kms::properties::{define_object_props, KmsPropertyData, CRTC_ID, DPMS, EDID, TILE};
|
||||
use crate::GraphicsAdapter;
|
||||
|
||||
impl<T: GraphicsAdapter> KmsObjects<T> {
|
||||
@@ -125,6 +125,13 @@ define_object_props!(object, KmsConnector<T: GraphicsAdapter> {
|
||||
DPMS {
|
||||
get => object.state.dpms as u64,
|
||||
}
|
||||
TILE {
|
||||
get => {
|
||||
// FIXME set this property once we support DP MST
|
||||
let _ = object;
|
||||
0
|
||||
},
|
||||
}
|
||||
CRTC_ID {
|
||||
get => u64::from(object.state.crtc_id.0),
|
||||
}
|
||||
|
||||
@@ -193,6 +193,7 @@ define_properties! {
|
||||
Suspend = u64::from(DRM_MODE_DPMS_SUSPEND),
|
||||
Off = u64::from(DRM_MODE_DPMS_OFF),
|
||||
} [],
|
||||
TILE: blob [immutable],
|
||||
|
||||
// CRTC
|
||||
ACTIVE: range { 0,1 } [atomic],
|
||||
|
||||
Reference in New Issue
Block a user