mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
bcb0b46145
Replace drm_format_num_planes(fb->pixel_format) with just fb->format->num_planes. Avoids the expensive format info lookup. @@ struct drm_framebuffer *a; struct drm_framebuffer b; @@ ( - drm_format_num_planes(a->pixel_format) + a->format->num_planes | - drm_format_num_planes(b.pixel_format) + b.format->num_planes ) @@ struct drm_plane_state *a; struct drm_plane_state b; @@ ( - drm_format_num_planes(a->fb->pixel_format) + a->fb->format->num_planes | - drm_format_num_planes(b.fb->pixel_format) + b.fb->format->num_planes ) @@ struct drm_framebuffer *a; identifier T; @@ T = a->pixel_format <+... - drm_format_num_planes(T) + a->format->num_planes ...+> @@ struct drm_framebuffer b; identifier T; @@ T = b.pixel_format <+... - drm_format_num_planes(T) + b.format->num_planes ...+> v2: Rerun spatch due to code changes Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: http://patchwork.freedesktop.org/patch/msgid/1481751022-18015-1-git-send-email-ville.syrjala@linux.intel.com |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vc4_bo.c | ||
vc4_crtc.c | ||
vc4_debugfs.c | ||
vc4_dpi.c | ||
vc4_drv.c | ||
vc4_drv.h | ||
vc4_gem.c | ||
vc4_hdmi.c | ||
vc4_hvs.c | ||
vc4_irq.c | ||
vc4_kms.c | ||
vc4_packet.h | ||
vc4_plane.c | ||
vc4_qpu_defines.h | ||
vc4_regs.h | ||
vc4_render_cl.c | ||
vc4_trace_points.c | ||
vc4_trace.h | ||
vc4_v3d.c | ||
vc4_validate_shaders.c | ||
vc4_validate.c | ||
vc4_vec.c |