diff options
author | Dave Airlie <airlied@redhat.com> | 2011-09-29 11:20:42 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-16 13:35:11 -0500 |
commit | 019d96cb55ade38a4b4a52bba0304e8cd681f30a (patch) | |
tree | f3d43aff33a8a897d4992f045257108a5a243bf4 /include/drm/drm_crtc.h | |
parent | 466e69b8b03b8c1987367912782bc12988ad8794 (diff) |
drm: add some caps for userspace to discover more info for dumb KMS driver (v2)
For the simple KMS driver case we need some more info about what the preferred
depth and if a shadow framebuffer is preferred.
I've only added this for intel/radeon which support the dumb ioctls so far.
If you need something really fancy you should be writing a real X.org driver.
v2: drop cursor information, just return an error from the cursor ioctls
and we can make userspace fallback to sw cursor in that case, cursor
info was getting too messy, best to start smaller.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 823531454799..2a0872cac333 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -796,6 +796,9 @@ struct drm_mode_config { | |||
796 | struct drm_property *scaling_mode_property; | 796 | struct drm_property *scaling_mode_property; |
797 | struct drm_property *dithering_mode_property; | 797 | struct drm_property *dithering_mode_property; |
798 | struct drm_property *dirty_info_property; | 798 | struct drm_property *dirty_info_property; |
799 | |||
800 | /* dumb ioctl parameters */ | ||
801 | uint32_t preferred_depth, prefer_shadow; | ||
799 | }; | 802 | }; |
800 | 803 | ||
801 | #define obj_to_crtc(x) container_of(x, struct drm_crtc, base) | 804 | #define obj_to_crtc(x) container_of(x, struct drm_crtc, base) |