diff options
author | Dave Airlie <airlied@redhat.com> | 2011-09-29 16:20:42 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-16 18:35:11 +0000 |
commit | 019d96cb55ade38a4b4a52bba0304e8cd681f30a (patch) | |
tree | f3d43aff33a8a897d4992f045257108a5a243bf4 /drivers/gpu/drm/i915 | |
parent | 466e69b8b03b8c1987367912782bc12988ad8794 (diff) | |
download | linux-3.10-019d96cb55ade38a4b4a52bba0304e8cd681f30a.tar.gz linux-3.10-019d96cb55ade38a4b4a52bba0304e8cd681f30a.tar.bz2 linux-3.10-019d96cb55ade38a4b4a52bba0304e8cd681f30a.zip |
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 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index dfa67449827..0a8a640d36e 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -9089,6 +9089,9 @@ void intel_modeset_init(struct drm_device *dev) dev->mode_config.min_width = 0; dev->mode_config.min_height = 0; + dev->mode_config.preferred_depth = 24; + dev->mode_config.prefer_shadow = 1; + dev->mode_config.funcs = (void *)&intel_mode_funcs; intel_init_quirks(dev); |