linux/Documentation/gpu
Lukasz Spintzyk d3b2176782 drm: Add a new plane property to send damage during plane update
FB_DAMAGE_CLIPS is an optional plane property to mark damaged regions
on the plane in framebuffer coordinates of the framebuffer attached to
the plane.

The layout of blob data is simply an array of "struct drm_mode_rect".
Unlike plane src coordinates, damage clips are not in 16.16 fixed point.
As plane src in framebuffer cannot be negative so are damage clips. In
damage clip, x1/y1 are inclusive and x2/y2 are exclusive.

This patch also exports the kernel internal drm_rect to userspace as
drm_mode_rect. This is because "struct drm_clip_rect" is not sufficient
to represent damage for current plane size.

Driver which are interested in enabling FB_DAMAGE_CLIPS property for a
plane should enable this property using drm_plane_enable_damage_clips.

v2:
- Input validation on damage clips against framebuffer size.
- Doc update, other minor changes.

Signed-off-by: Lukasz Spintzyk <lukasz.spintzyk@displaylink.com>
Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2018-12-05 10:00:35 +01:00
..
bridge drm: bridge: dw-hdmi: Add Documentation on supported input formats 2017-04-04 17:48:21 +02:00
amdgpu-dc.rst drm/amd/display: Initial documentation for AMDgpu DC 2018-11-05 14:21:37 -05:00
amdgpu.rst drm/amdgpu: update documentation for amdgpu_drv.c 2018-07-05 16:40:04 -05:00
conf.py doc-rst: build PDF of 80211 and gpu sub-project 2016-10-26 17:25:17 -06:00
drivers.rst drm/amd/display: Initial documentation for AMDgpu DC 2018-11-05 14:21:37 -05:00
drm-client.rst drm: Begin an API for in-kernel clients 2018-07-10 14:51:37 +02:00
drm-internals.rst Merge remote-tracking branch 'airlied/drm-next' into drm-misc-next 2017-06-27 09:18:17 -04:00
drm-kms-helpers.rst drm: Extract drm_atomic_state_helper.[hc] 2018-10-05 18:04:09 +02:00
drm-kms.rst drm: Add a new plane property to send damage during plane update 2018-12-05 10:00:35 +01:00
drm-mm.rst Documentation: drm: Remove dangling pointer from drm-mm.rst 2018-11-30 08:55:37 +10:00
drm-uapi.rst drm/doc: Update errno handbook 2018-10-24 14:20:36 +02:00
i915.rst drm/i915: Move a bunch of workaround-related code to its own file 2018-04-11 22:47:01 +01:00
index.rst drm: Begin an API for in-kernel clients 2018-07-10 14:51:37 +02:00
introduction.rst drm: Document code of conduct 2017-05-05 11:48:17 +10:00
kms-properties.csv drm: content-type property for HDMI connector 2018-05-17 18:58:35 +03:00
meson.rst drm/meson: Add RST to bring together kerneldoc 2017-04-04 17:49:31 +02:00
msm-crash-dump.rst drm/msm/gpu: Add the buffer objects from the submit to the crash dump 2018-07-30 08:50:10 -04:00
pl111.rst drm/pl111: Initial drm/kms driver for pl111 2017-05-08 12:24:06 -07:00
tegra.rst drm/tegra: Add driver documentation 2017-06-15 13:58:56 +02:00
tinydrm.rst drm/tinydrm: Add MIPI DBI support 2017-02-18 18:04:59 +01:00
todo.rst drm: Improve dumb callback docs 2018-11-27 15:23:18 +01:00
tve200.rst drm/tve200: fix kernel-doc documentation comment include 2018-02-21 09:26:38 +02:00
v3d.rst drm/v3d: Add missing v3d documentation structure. 2018-07-05 11:42:50 -07:00
vc4.rst drm/vc4: Add a paragraph at the top of vc4 docs introducing what it is. 2017-02-28 12:51:49 -08:00
vga-switcheroo.rst drm/doc: Fix vga_switcheroo xref 2016-08-24 13:11:08 +02:00
vgaarbiter.rst vgaarbiter: rst-ifiy and polish kerneldoc 2016-08-16 18:49:56 +02:00
vkms.rst drm/vkms: Extend todo 2018-10-03 18:19:41 +02:00
xen-front.rst drm/xen-front: Remove CMA support 2018-04-18 10:18:27 +03:00