Ville Syrjälä
438b74a549
drm: Nuke fb->pixel_format
Replace uses of fb->pixel_format with fb->format->format.
Less duplicated information is a good thing.
Note that coccinelle failed to eliminate the
"/* fourcc format */" comment from drm_framebuffer.h, so I had
to do that part manually.
@@
struct drm_framebuffer *FB;
expression E;
@@
drm_helper_mode_fill_fb_struct(...) {
...
- FB->pixel_format = E;
...
}
@@
struct drm_framebuffer *FB;
expression E;
@@
i9xx_get_initial_plane_config(...) {
...
- FB->pixel_format = E;
...
}
@@
struct drm_framebuffer *FB;
expression E;
@@
ironlake_get_initial_plane_config(...) {
...
- FB->pixel_format = E;
...
}
@@
struct drm_framebuffer *FB;
expression E;
@@
skylake_get_initial_plane_config(...) {
...
- FB->pixel_format = E;
...
}
@@
struct drm_framebuffer *a;
struct drm_framebuffer b;
@@
(
- a->pixel_format
+ a->format->format
|
- b.pixel_format
+ b.format->format
)
@@
struct drm_plane_state *a;
struct drm_plane_state b;
@@
(
- a->fb->pixel_format
+ a->fb->format->format
|
- b.fb->pixel_format
+ b.fb->format->format
)
@@
struct drm_crtc *CRTC;
@@
(
- CRTC->primary->fb->pixel_format
+ CRTC->primary->fb->format->format
|
- CRTC->primary->state->fb->pixel_format
+ CRTC->primary->state->fb->format->format
)
@@
struct drm_mode_set *set;
@@
(
- set->fb->pixel_format
+ set->fb->format->format
|
- set->crtc->primary->fb->pixel_format
+ set->crtc->primary->fb->format->format
)
@@
@@
struct drm_framebuffer {
...
- uint32_t pixel_format;
...
};
v2: Fix commit message (Laurent)
Rebase due to earlier removal of many fb->pixel_format uses,
including the 'fb->format = drm_format_info(fb->format->format);'
snafu
v3: Adjusted the semantic patch a bit and regenerated due to code
changes
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1481751175-18463-1-git-send-email-ville.syrjala@linux.intel.com
2016-12-15 14:55:34 +02:00
..
2016-10-26 10:29:58 +05:30
2016-09-07 13:10:10 +01:00
2016-10-28 11:33:52 +10:00
2014-09-12 15:28:12 +02:00
2016-04-27 08:41:34 +02:00
2016-09-12 16:59:15 -04:00
2016-11-28 17:48:58 +02:00
2016-12-13 09:36:13 +01:00
2016-10-22 10:42:11 +02:00
2016-09-19 15:04:15 +02:00
2016-04-22 10:24:11 +10:00
2016-09-22 00:04:03 -07:00
2016-12-13 12:05:12 +10:00
2016-08-16 16:10:19 +02:00
2016-11-16 10:42:48 +01:00
2016-10-17 16:44:34 +02:00
2016-05-23 11:35:31 +10:00
2016-10-19 18:20:40 +03:00
2016-10-25 08:53:44 +02:00
2016-07-19 10:31:53 +02:00
2016-11-30 14:28:20 +10:00
2016-11-09 13:55:13 +01:00
2015-12-15 13:41:17 +01:00
2016-10-17 08:12:05 +02:00
2016-11-15 12:24:08 +01:00
2016-11-14 07:47:46 +01:00
2016-02-05 15:23:48 +10:00
2014-11-15 09:29:14 +10:00
2016-11-12 14:19:38 +01:00
2016-12-15 14:55:34 +02:00
2014-11-13 13:27:17 +01:00
2016-08-16 16:09:58 +02:00
2012-11-28 18:36:05 +10:00
2016-11-15 23:33:48 +01:00
2016-06-21 22:10:55 +02:00
2016-04-11 17:13:10 +01:00
2016-08-24 13:34:00 +02:00
2016-11-28 08:07:58 +01:00
2016-11-16 14:36:27 +01:00
2016-09-19 15:04:15 +02:00
2016-09-19 15:04:15 +02:00
2016-11-22 11:11:57 +01:00
2016-12-15 14:03:30 +02:00
2016-11-15 08:33:35 +01:00
2016-10-26 15:48:42 -04:00
2013-12-18 11:35:45 +10:00
2016-05-06 16:04:48 +02:00
2015-08-12 12:24:05 -04:00
2016-08-16 16:10:19 +02:00
2016-12-08 13:42:57 +02:00
2016-11-15 12:55:24 +01:00
2016-09-19 15:03:46 +02:00
2015-11-24 11:47:46 +01:00
2016-10-05 15:18:02 +02:00
2016-09-19 11:22:08 +02:00
2016-11-30 14:18:51 +10:00
2014-03-17 20:11:57 +01:00
2016-09-22 09:01:55 -07:00
2016-08-09 22:18:26 +02:00
2016-09-07 16:07:07 -07:00
2016-06-13 10:03:54 +01:00