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/synopsys: dsi: add dual-dsi support
2018-10-30 14:06:29 +01:00
i2c
tinydrm
drm/tinydrm: Use DRM_GEM_CMA_VMAP_DRIVER_OPS
2018-11-20 14:58:19 +01:00
ttm
drm: Remove drm_global.{c,h} v2
2018-11-05 14:21:21 -05:00
amd_asic_type.h
drm/amdgpu: simplify Raven, Raven2, and Picasso handling
2018-09-14 09:38:03 -05:00
ati_pcigart.h
drm_agpsupport.h
drm_atomic.h
drm-misc-next for v4.21, part 1:
2018-11-19 10:40:33 +10:00
drm_atomic_helper.h
drm: Extract drm_atomic_state_helper.[hc]
2018-10-05 18:04:09 +02:00
drm_atomic_state_helper.h
drm: Extract drm_atomic_state_helper.[hc]
2018-10-05 18:04:09 +02:00
drm_atomic_uapi.h
drm: extract drm_atomic_uapi.c
2018-09-09 14:19:18 +02:00
drm_audio_component.h
ALSA: hda: Make audio component support more generic
2018-07-17 22:25:48 +02:00
drm_auth.h
drm_blend.h
drm: Add per-plane pixel blend mode property
2018-08-24 17:31:37 +01:00
drm_bridge.h
drm_cache.h
drm_client.h
drm/cma-helper: Fix crash in fbdev error path
2018-10-02 13:03:34 +02:00
drm_color_mgmt.h
drm: drop drmP.h include from drm_plane.c
2018-09-09 14:19:17 +02:00
drm_connector.h
drm-misc-next for v4.21:
2018-11-29 10:28:49 +10:00
drm_crtc.h
drm/crc: Cleanup crtc_crc_open function
2018-08-22 09:47:58 -07:00
drm_crtc_helper.h
drm: Remove transitional helpers
2018-10-05 18:04:10 +02:00
drm_damage_helper.h
drm: Add a new plane property to send damage during plane update
2018-12-05 10:00:35 +01:00
drm_debugfs.h
drm_debugfs_crc.h
drm/crc: Only report a single overflow when a CRC fd is opened
2018-07-06 14:57:03 +02:00
drm_device.h
drm: Introduce per-device driver_features
2018-09-13 18:44:06 +03:00
drm_displayid.h
drm_dp_dual_mode_helper.h
drm_dp_helper.h
Merge drm/drm-next into drm-intel-next-queued
2018-11-20 13:14:08 +02:00
drm_dp_mst_helper.h
drm/dp_mst: Remove all evil duplicate state pointers
2018-10-24 15:44:45 -04:00
drm_drv.h
drm: Improve dumb callback docs
2018-11-27 15:23:18 +01:00
drm_edid.h
drm/edid: VSDB yCBCr420 Deep Color mode bit definitions
2018-10-16 16:38:16 +03:00
drm_encoder.h
drm: Add drm/drm_util.h header file
2018-09-09 14:18:11 +02:00
drm_encoder_slave.h
drm_fb_cma_helper.h
drm/rcar-du: Convert drm_atomic_helper_suspend/resume()
2018-10-23 15:59:01 +02:00
drm_fb_helper.h
drm/fb-helper: document remove*_conflicting_framebuffers()
2018-09-07 22:07:49 +02:00
drm_file.h
drm/file: Uncompact the feature flags
2018-11-06 18:23:31 +01:00
drm_fixed.h
drm_flip_work.h
drm_fourcc.h
drm/fourcc: Add char_per_block, block_w and block_h in drm_format_info
2018-11-02 09:55:27 +00:00
drm_framebuffer.h
drm: remove deprecated "drm_framebuffer_[un]reference" functions
2018-11-24 22:12:55 +01:00
drm_gem.h
drm: remove deprecated "[__]drm_gem_object_[un]reference[_locked]" functions
2018-11-24 22:12:54 +01:00
drm_gem_cma_helper.h
drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS
2018-11-20 14:57:25 +01:00
drm_gem_framebuffer_helper.h
drm_hashtab.h
drm_hdcp.h
drm: HDMI and DP specific HDCP2.2 defines
2018-10-29 16:22:34 +01:00
drm_ioctl.h
drm_irq.h
drm_lease.h
drm_legacy.h
drm_mipi_dsi.h
drm: dsi: Add lane clock rate fields to DSI device
2018-10-24 16:26:35 +02:00
drm_mm.h
drm_mode_config.h
drm: Add a new plane property to send damage during plane update
2018-12-05 10:00:35 +01:00
drm_mode_object.h
drm_modes.h
drm: drop _mode_ from remaining connector functions
2018-07-13 18:40:27 +02:00
drm_modeset_helper.h
drm_modeset_helper_vtables.h
drm: drop _mode_ from update_edit_property()
2018-07-13 18:40:27 +02:00
drm_modeset_lock.h
drm_of.h
drm_os_linux.h
drm_panel.h
This is the 4.19-rc6 release
2018-10-04 11:03:34 +10:00
drm_pci.h
drm: drop drm_pcie_get_speed_cap_mask and drm_pcie_get_max_link_width
2018-07-05 16:40:00 -05:00
drm_pciids.h
drm/radeon: change SPDX identifier to MIT
2018-10-15 16:16:12 -05:00
drm_plane.h
drm: Add a new plane property to send damage during plane update
2018-12-05 10:00:35 +01:00
drm_plane_helper.h
drm: Unexport drm_plane_helper_check_update
2018-10-05 22:45:19 +02:00
drm_prime.h
drm/prime: Add drm_gem_prime_mmap()
2018-11-20 14:54:53 +01:00
drm_print.h
Merge drm/drm-next into drm-misc-next
2018-08-27 10:00:03 -04:00
drm_property.h
drm: Fix kernel doc for DRM_MODE_PROP_IMMUTABLE
2018-10-03 13:05:12 -07:00
drm_rect.h
drm_scdc_helper.h
drm_simple_kms_helper.h
drm_syncobj.h
drm: Revert syncobj timeline changes.
2018-11-12 12:54:21 +01:00
drm_sysfs.h
drm_util.h
drm: Add drm/drm_util.h header file
2018-09-09 14:18:11 +02:00
drm_utils.h
drm_vblank.h
drm/vblank: Remove old-style comments
2018-10-05 17:39:28 +02:00
drm_vma_manager.h
drm/i915: Prevent writing into a read-only object via a GGTT mmap
2018-07-13 16:14:04 +01:00
drm_writeback.h
drm/atomic: Avoid connector to writeback_connector casts
2018-07-07 07:51:19 +02:00
drmP.h
Merge branch 'drm-next-4.21' of git://people.freedesktop.org/~agd5f/linux into drm-next
2018-11-19 11:07:52 +10:00
gma_drm.h
gpu_scheduler.h
drm/scheduler: Add drm_sched_job_cleanup
2018-11-05 14:21:27 -05:00
i915_component.h
drm/i915: Split audio component to a generic type
2018-07-17 22:25:19 +02:00
i915_drm.h
x86/gpu: reserve ICL's graphics stolen memory
2018-07-10 16:28:47 -07:00
i915_pciids.h
drm/i915/aml: Add new Amber Lake PCI ID
2018-10-11 10:59:34 -07:00
intel-gtt.h
intel_lpe_audio.h
spsc_queue.h