]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add DRM_CAPs for cursor size
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2014 17:48:23 +0000 (12:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2014 18:41:01 +0000 (13:41 -0500)
commit83bf3929a4ae046a3b0169e886a661e6b90c6d67
treeb65caa1d64e5524190e0dcdeb41be8b72ee8f49c
parent539d5dfe2294a4ac997b0855359b43b5bdfba1a4
drm: add DRM_CAPs for cursor size

Some hardware may not support standard 64x64 cursors.  Add
a drm cap to query the cursor size from the kernel.  Some examples
include radeon CIK parts (128x128 cursors) and armada (32x64 or 64x32).
This allows things like device specific ddxes to remove asics specific
logic and also allows xf86-video-modesetting to work properly with hw
cursors on this hardware. Default to 64 if the driver doesn't specify
a size.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_ioctl.c
include/drm/drm_crtc.h
include/uapi/drm/drm.h