linux/drivers/gpu/drm/msm/mdp/mdp4
Ville Syrjälä bae781b259 drm: Nuke modifier[1-3]
It has been suggested that having per-plane modifiers is making life
more difficult for userspace, so let's just retire modifier[1-3] and
use modifier[0] to apply to the entire framebuffer.

Obviosuly this means that if individual planes need different tiling
layouts and whatnot we will need a new modifier for each combination
of planes with different tiling layouts.

For a bit of extra backwards compatilbilty the kernel will allow
non-zero modifier[1+] but it require that they will match modifier[0].
This in case there's existing userspace out there that sets
modifier[1+] to something non-zero with planar formats.

Mostly a cocci job, with a bit of manual stuff mixed in.

@@
struct drm_framebuffer *fb;
expression E;
@@
- fb->modifier[E]
+ fb->modifier

@@
struct drm_framebuffer fb;
expression E;
@@
- fb.modifier[E]
+ fb.modifier

Cc: Kristian Høgsberg <hoegsberg@gmail.com>
Cc: Ben Widawsky <benjamin.widawsky@intel.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Cc: dczaplejewicz@collabora.co.uk
Suggested-by: Kristian Høgsberg <hoegsberg@gmail.com>
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Acked-by: Daniel Stone <daniels@collabora.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1479295996-26246-1-git-send-email-ville.syrjala@linux.intel.com
2016-11-17 11:58:09 +01:00
..
mdp4_crtc.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
mdp4_dsi_encoder.c drm/msm/mdp: removed optional dummy encoder mode_fixup function. 2016-02-16 15:33:21 +01:00
mdp4_dtv_encoder.c drm/msm/mdp4: Clean up some MDP4 clocks 2016-07-16 10:08:45 -04:00
mdp4_irq.c drm/msm: module param to dump state on error irq 2016-11-08 16:38:03 -05:00
mdp4_kms.c drm/msm/mdp4: Fix issue with LCDC/LVDS port parsing 2016-09-15 12:53:37 -04:00
mdp4_kms.h drm/msm: Call pm_runtime_enable/disable for newly created devices 2016-07-16 10:08:58 -04:00
mdp4_lcdc_encoder.c drm/msm/mdp4: mark symbols static where possible 2016-09-15 17:21:11 -04:00
mdp4_lvds_connector.c drm: msm: Rely on the default ->best_encoder() behavior where appropriate 2016-06-09 08:43:26 +02:00
mdp4_lvds_pll.c drm/msm/mdp4: add LVDS panel support 2014-09-10 11:19:07 -04:00
mdp4_plane.c drm: Nuke modifier[1-3] 2016-11-17 11:58:09 +01:00
mdp4.xml.h drm/msm: update generated headers 2016-03-03 11:55:27 -05:00