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-11-30 14:18:51 +10:00
2016-10-25 14:38:45 -04:00
2016-09-22 10:30:36 -04:00
2016-09-19 20:58:35 +03:00
2016-09-19 20:58:35 +03:00
2016-09-22 10:24:16 -04:00
2016-10-25 14:38:56 -04:00
2016-10-25 14:38:56 -04:00
2016-11-29 09:23:39 -05:00
2016-10-25 14:40:39 +02:00
2016-12-08 14:09:05 -05:00
2016-11-11 10:20:04 -05:00
2016-12-06 18:08:24 -05:00
2016-11-30 14:18:51 +10:00
2016-12-06 18:08:32 -05:00
2016-10-28 11:33:52 +10:00
2016-12-09 12:29:10 +10:00
2016-12-15 14:03:30 +02:00
2016-10-25 14:38:41 -04:00
2016-11-11 10:21:01 -05:00
2016-12-06 11:01:33 +10:00
2016-12-15 14:55:33 +02:00
2016-11-11 10:20:58 -05:00
2016-10-25 14:38:13 -04:00
2016-08-19 12:30:58 -04:00
2016-10-25 14:38:30 -04:00
2016-10-25 14:38:58 -04:00
2016-10-25 14:38:58 -04:00
2016-12-06 18:08:34 -05:00
2016-10-06 12:39:03 -04:00
2016-09-27 13:00:52 -04:00
2016-10-28 11:33:52 +10:00
2016-09-14 15:10:27 -04:00
2016-11-23 15:08:43 -05:00
2016-11-23 15:08:43 -05:00
2016-10-25 14:40:39 +02:00
2016-12-08 14:12:09 -05:00
2016-10-25 14:38:26 -04:00
2016-11-23 15:13:21 -05:00
2016-11-23 15:08:45 -05:00
2016-10-28 11:33:52 +10:00
2016-09-14 15:10:37 -04:00
2016-11-11 10:20:56 -05:00
2016-11-23 15:08:46 -05:00
2016-10-25 14:38:45 -04:00
2016-11-11 10:20:04 -05:00
2016-10-25 14:38:38 -04:00
2016-11-11 10:20:58 -05:00
2016-11-11 10:21:07 -05:00
2016-10-25 14:40:39 +02:00
2016-10-28 11:33:52 +10:00
2016-10-25 14:40:39 +02:00
2016-10-25 14:40:39 +02:00
2016-12-06 18:08:21 -05:00
2016-10-28 11:33:52 +10:00
2016-10-25 14:38:23 -04:00
2016-10-25 14:38:23 -04:00
2016-11-23 15:08:47 -05:00
2016-10-25 14:40:39 +02:00
2016-10-28 11:33:52 +10:00
2016-10-28 11:33:52 +10:00
2016-09-22 10:24:20 -04:00
2016-11-23 15:08:46 -05:00
2016-10-28 11:33:52 +10:00
2016-11-11 10:21:12 -05:00
2016-12-08 14:12:17 -05:00
2016-05-11 12:31:20 -04:00
2016-10-25 14:38:58 -04:00
2016-05-04 20:23:53 -04:00
2016-08-08 13:28:39 -04:00
2016-07-14 16:46:06 -04:00
2016-09-14 15:10:37 -04:00
2016-07-14 16:39:35 -04:00
2016-12-06 18:08:25 -05:00
2016-07-07 14:50:49 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-10-28 11:33:52 +10:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:56 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:08 -04:00
2016-11-23 15:08:39 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-09-22 10:24:16 -04:00
2016-05-11 12:31:20 -04:00
2016-12-15 14:55:34 +02:00
2016-10-25 14:38:45 -04:00
2016-12-15 14:55:34 +02:00
2016-10-25 14:38:45 -04:00
2016-12-15 14:55:34 +02:00
2016-10-25 14:38:45 -04:00
2016-12-15 14:55:34 +02:00
2016-10-25 14:38:45 -04:00
2016-12-06 10:26:48 +01:00
2016-10-25 14:38:45 -04:00
2016-12-08 14:12:17 -05:00
2016-10-25 14:38:45 -04:00
2016-12-08 14:12:18 -05:00
2016-10-25 14:38:45 -04:00
2016-12-08 14:12:17 -05:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:21 -05:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:21 -05:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:21 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-10-04 11:15:59 -04:00
2016-11-11 10:21:01 -05:00
2016-10-25 14:38:16 -04:00
2016-10-25 14:38:06 -04:00
2016-07-15 12:33:31 -04:00
2016-08-31 15:21:09 -04:00
2016-11-23 15:08:41 -05:00
2016-10-25 14:38:45 -04:00
2016-11-23 15:08:41 -05:00
2016-10-25 14:38:45 -04:00
2016-10-28 11:33:52 +10:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:40 -05:00
2016-08-31 15:21:09 -04:00
2016-11-23 15:08:42 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-09-14 15:10:40 -04:00
2016-10-25 14:38:58 -04:00
2016-10-25 14:38:45 -04:00
2016-09-28 16:13:17 -04:00
2016-05-04 20:26:26 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-11-15 12:36:36 -05:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:23 -05:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:23 -05:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:26 -05:00
2016-10-25 14:38:45 -04:00
2016-12-06 18:08:26 -05:00
2016-10-25 14:38:45 -04:00
2016-09-19 14:38:25 -04:00