]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/atomic: Add pixel source to plane state dump
authorJessica Zhang <quic_jesszhan@quicinc.com>
Fri, 27 Oct 2023 22:32:54 +0000 (15:32 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 1 Dec 2023 23:56:51 +0000 (01:56 +0200)
Add pixel source to the atomic plane state dump

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Sebastian Wick <sebastian@sebastianwick.net>
Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231027-solid-fill-v7-4-780188bfa7b2@quicinc.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_blend.c
drivers/gpu/drm/drm_crtc_internal.h

index f1a503aafe5aa18526a5bbe92a79c475433906c4..02aa7df832cc0774f103ac874ae306f0aba4b1aa 100644 (file)
@@ -722,6 +722,7 @@ static void drm_atomic_plane_print_state(struct drm_printer *p,
 
        drm_printf(p, "plane[%u]: %s\n", plane->base.id, plane->name);
        drm_printf(p, "\tcrtc=%s\n", state->crtc ? state->crtc->name : "(null)");
+       drm_printf(p, "\tpixel-source=%s\n", drm_get_pixel_source_name(state->pixel_source));
        drm_printf(p, "\tfb=%u\n", state->fb ? state->fb->base.id : 0);
        if (state->fb)
                drm_framebuffer_print_info(p, 2, state->fb);
index 37b31b7e5ce5dde07ee9f63842266449019a583c..9c1608f7c1df70ac61858a852402c20219650f6b 100644 (file)
@@ -647,6 +647,7 @@ static const struct drm_prop_enum_list drm_pixel_source_enum_list[] = {
        { DRM_PLANE_PIXEL_SOURCE_FB, "FB" },
        { DRM_PLANE_PIXEL_SOURCE_SOLID_FILL, "SOLID_FILL" },
 };
+DRM_ENUM_NAME_FN(drm_get_pixel_source_name, drm_pixel_source_enum_list);
 
 /**
  * drm_plane_create_pixel_source_property - create a new pixel source property
index a514d5207e4197ac6434fbfeb9fb3a4bfe0d771e..4114675c07282ba859a15ca336777ac29e9e4389 100644 (file)
@@ -269,6 +269,7 @@ int drm_plane_check_pixel_format(struct drm_plane *plane,
                                 u32 format, u64 modifier);
 struct drm_mode_rect *
 __drm_plane_get_damage_clips(const struct drm_plane_state *state);
+const char *drm_get_pixel_source_name(int val);
 
 /* drm_bridge.c */
 void drm_bridge_detach(struct drm_bridge *bridge);