mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/amd/display: add plane blend LUT and TF driver-specific properties
Blend 1D LUT or a pre-defined transfer function (TF) can be set to linearize content before blending, so that it's positioned just before blending planes in the AMD color mgmt pipeline, and after 3D LUT (non-linear space). Shaper and Blend LUTs are 1D LUTs that sandwich 3D LUT. Drivers should advertize blend properties according to HW caps. There is no blend ROM for pre-defined TF. When setting blend TF (!= Identity) and LUT at the same time, the color module will combine the pre-defined TF and the custom LUT values into the LUT that's actually programmed. v3: - spell out TF+LUT behavior in the commit and comments (Harry) v5: - get blend blob correctly Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Joshua Ashton <joshua@froggi.es> Signed-off-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
f545d82479
commit
0ef47454dc
@@ -800,6 +800,18 @@ struct dm_plane_state {
|
||||
* &struct drm_color_lut.
|
||||
*/
|
||||
struct drm_property_blob *lut3d;
|
||||
/**
|
||||
* @blend_lut: blend lut lookup table blob. The blob (if not NULL) is an
|
||||
* array of &struct drm_color_lut.
|
||||
*/
|
||||
struct drm_property_blob *blend_lut;
|
||||
/**
|
||||
* @blend_tf:
|
||||
*
|
||||
* Pre-defined transfer function for converting plane pixel data before
|
||||
* applying blend LUT.
|
||||
*/
|
||||
enum amdgpu_transfer_function blend_tf;
|
||||
};
|
||||
|
||||
struct dm_crtc_state {
|
||||
|
||||
Reference in New Issue
Block a user