linux_dsm_epyc7002/drivers/gpu/drm/vc4
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
..
Kconfig drm/vc4: Add DPI driver 2016-04-14 12:22:53 -07:00
Makefile drm/vc4: Add support for the VEC (Video Encoder) IP 2016-12-09 15:26:31 -08:00
vc4_bo.c drm/vc4: mark vc4_bo_cache_purge() static 2016-09-09 12:21:43 -07:00
vc4_crtc.c drm/vc4: Fix ->clock_select setting for the VEC encoder 2016-12-09 15:26:29 -08:00
vc4_debugfs.c drm/vc4: Add support for the VEC (Video Encoder) IP 2016-12-09 15:26:31 -08:00
vc4_dpi.c drm/vc4: Disallow interlaced modes on DPI. 2016-08-19 19:05:43 -07:00
vc4_drv.c This pull request brings in VEC (TV-out) support for vc4, along with a 2016-12-13 12:05:12 +10:00
vc4_drv.h drm/vc4: Add support for the VEC (Video Encoder) IP 2016-12-09 15:26:31 -08:00
vc4_gem.c drm/vc4: Use runtime autosuspend to avoid thrashing V3D power state. 2016-11-04 16:12:35 -07:00
vc4_hdmi.c drm/vc4: Add support for double-clocked modes. 2016-10-06 11:58:28 -07:00
vc4_hvs.c drm/vc4: Add support for scaling of display planes. 2016-02-16 11:24:08 -08:00
vc4_irq.c drm/vc4: Fix overflow mem unreferencing when the binner runs dry. 2016-08-19 19:17:34 -07:00
vc4_kms.c This pull request brings in VEC (TV-out) support for vc4, along with a 2016-12-13 12:05:12 +10:00
vc4_packet.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_plane.c drm: Nuke fb->pixel_format 2016-12-15 14:55:34 +02:00
vc4_qpu_defines.h drm/vc4: Fix definition of QPU_R_MS_REV_FLAGS 2016-07-15 15:19:52 -07:00
vc4_regs.h drm/vc4: Fix ->clock_select setting for the VEC encoder 2016-12-09 15:26:29 -08:00
vc4_render_cl.c drm/vc4: Fix races when the CS reads from render targets. 2016-10-06 11:53:50 -07:00
vc4_trace_points.c drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_trace.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_v3d.c drm/vc4: Use runtime autosuspend to avoid thrashing V3D power state. 2016-11-04 16:12:35 -07:00
vc4_validate_shaders.c drm/vc4: Add fragment shader threading support 2016-11-16 13:25:26 -08:00
vc4_validate.c drm/vc4: Add fragment shader threading support 2016-11-16 13:25:26 -08:00
vc4_vec.c drm/vc4: Add support for the VEC (Video Encoder) IP 2016-12-09 15:26:31 -08:00