Lines Matching +full:dc +full:- +full:dc +full:- +full:mode

8 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
11 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
17 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
20 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
26 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
29 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
32 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
38 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
41 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
47 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
50 .. kernel-doc:: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
54 DC Color Capabilities between DCN generations
55 ---------------------------------------------
59 gamma LUT sizes. AMD DC programs some of the color correction features
60 pre-blending but DRM/KMS has not per-plane color correction properties.
62 In general, the DRM CRTC color properties are programmed to DC, as follows:
63 CRTC gamma after blending, and CRTC degamma pre-blending. Although CTM is
64 programmed after blending, it is mapped to DPP hw blocks (pre-blending). Other
68 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/dc.h
69 :doc: color-management-caps
71 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/dc.h
81 .. kernel-figure:: dcn2_cm_drm_current.svg
85 .. kernel-figure:: dcn3_cm_drm_current.svg
87 Blend Mode Properties
90 Pixel blend mode is a DRM plane composition property of :c:type:`drm_plane` used to
92 background plane (bg). Here, we present main concepts of DRM blend mode to help
93 to understand how this property is mapped to AMD DC interface. See more about
97 Basically, a blend mode sets the alpha blending equation for plane
98 composition that fits the mode in which the alpha channel affects the state of
102 - *fg.rgb*: Each of the RGB component values from the foreground's pixel.
103 - *fg.alpha*: Alpha component value from the foreground's pixel.
104 - *bg.rgb*: Each of the RGB component values from the background.
105 - *plane_alpha*: Plane alpha value set by the **plane "alpha" property**, see
110 out.rgb = alpha * fg.rgb + (1 - alpha) * bg.rgb
115 DRM has three blend mode to define the blend formula in the plane composition:
119 * **Pre-multiplied**: Blend formula that assumes the pixel color values in a
120 plane was already pre-multiplied by its own alpha channel before storage.
123 pre-multiplied with the alpha channel values.
125 and pre-multiplied is the default pixel blend mode, that means, when no blend
126 mode property is created or defined, DRM considers the plane's pixels has
127 pre-multiplied color values. On IGT GPU tools, the kms_plane_alpha_blend test
128 provides a set of subtests to verify plane alpha and blend mode properties.
130 The DRM blend mode and its elements are then mapped by AMDGPU display manager
134 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
135 :doc: mpc-overview
137 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
142 :c:type:`pre_multiplied_alpha` is the alpha pre-multiplied mode flag used to
144 multiplied (true/false), being only true for DRM pre-multiplied blend mode.
145 :c:type:`mpcc_alpha_blend_mode` defines the alpha blend mode regarding pixel
149 .. kernel-doc:: drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
158 be ignored and, therefore, pixel values are not pre-multiplied
167 pre-multiplied by alpha or not.
170 ------------------------
172 The alpha blending equation is configured from DRM to DC interface by the
179 OS-agnostic component (DC).
181 2. On DC interface, :c:type:`struct mpcc_blnd_cfg <mpcc_blnd_cfg>` programs the