]> 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)
commit0066720f925664dd3a52c83d62d34dcb031b795b
treeb65caa1d64e5524190e0dcdeb41be8b72ee8f49c
parent030ecd22232f1d7e9051033120bdd7a9baba8792
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