aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-11-09 19:18:15 -0500
committerDave Airlie <airlied@redhat.com>2014-11-14 18:43:23 -0500
commit5bb2bbf596a0ca35b8ba2b0d5b734a1f270040ff (patch)
tree738897404b8b3c94dc7e595e76f1bbcb53bdbe24 /include/drm
parentbaf698b0496e93f2737b9046d3b1892c55133b0d (diff)
drm: add properties for suggested x/y offset for connectors. (v2)
Virtual GPUs would like to give the guest some indication where on the screen the outputs are layed out. So far we only provide modes, these properties could be exposed to userspace so the desktop environment could use them as hints to set the correct offsets. v2: rename properties to be more consistent. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_crtc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index c95941076aaf..7b28ab032a88 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1038,6 +1038,10 @@ struct drm_mode_config {
1038 struct drm_property *aspect_ratio_property; 1038 struct drm_property *aspect_ratio_property;
1039 struct drm_property *dirty_info_property; 1039 struct drm_property *dirty_info_property;
1040 1040
1041 /* properties for virtual machine layout */
1042 struct drm_property *suggested_x_property;
1043 struct drm_property *suggested_y_property;
1044
1041 /* dumb ioctl parameters */ 1045 /* dumb ioctl parameters */
1042 uint32_t preferred_depth, prefer_shadow; 1046 uint32_t preferred_depth, prefer_shadow;
1043 1047
@@ -1231,6 +1235,7 @@ extern int drm_mode_create_tv_properties(struct drm_device *dev,
1231extern int drm_mode_create_scaling_mode_property(struct drm_device *dev); 1235extern int drm_mode_create_scaling_mode_property(struct drm_device *dev);
1232extern int drm_mode_create_aspect_ratio_property(struct drm_device *dev); 1236extern int drm_mode_create_aspect_ratio_property(struct drm_device *dev);
1233extern int drm_mode_create_dirty_info_property(struct drm_device *dev); 1237extern int drm_mode_create_dirty_info_property(struct drm_device *dev);
1238extern int drm_mode_create_suggested_offset_properties(struct drm_device *dev);
1234 1239
1235extern int drm_mode_connector_attach_encoder(struct drm_connector *connector, 1240extern int drm_mode_connector_attach_encoder(struct drm_connector *connector,
1236 struct drm_encoder *encoder); 1241 struct drm_encoder *encoder);