drm: mali-dp: Add CTM support
All DPs have a COLORADJ matrix which is applied prior to output gamma. Attach that to the CTM property. Also, ensure the input CTM's coefficients can fit in the DP registers' Q3.12 format. Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
This commit is contained in:

committed by
Liviu Dudau

parent
02725d3137
commit
6954f24588
@@ -259,6 +259,7 @@ static inline bool malidp_hw_pitch_valid(struct malidp_hw_device *hwdev,
|
||||
#define MALIDP_BGND_COLOR_G 0x000
|
||||
#define MALIDP_BGND_COLOR_B 0x000
|
||||
|
||||
#define MALIDP_COLORADJ_NUM_COEFFS 12
|
||||
#define MALIDP_COEFFTAB_NUM_COEFFS 64
|
||||
|
||||
#define MALIDP_GAMMA_LUT_SIZE 4096
|
||||
|
Reference in New Issue
Block a user