Commit c6b994c
drm: apple: Explicitly set identity matrix when CTM blob is not set
Unset CTM means a unit/pass-thru matrix should be used. Since we were
checking for a valid CTM blob, this was resulting in a misconfigured
colour management pipeline.
This was most noticeable when using kwin's Night Light feature, specifically
when waking the display after the morning transition was supposed to
happen. Despite triggering a colour management change on CRTC enable,
kwin clearing the CTM blob meant that there was nothing for us to passs
in to IOMFB to set DCP's internal CTM.
Explicitly pass the identity matrix to IOMFB if we have a pending
colour management change and no CTM blob.
Signed-off-by: James Calligeros <jcalligeros99@gmail.com>
Signed-off-by: Janne Grunau <j@jannau.net>
---
- simplify after refactoring and fix value for 1 (S31.32 sign-magnitude)
- adjusted commit message to documented DRM KMS behaviour1 parent 954529a commit c6b994c
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1406 | 1406 | | |
1407 | 1407 | | |
1408 | 1408 | | |
1409 | | - | |
1410 | | - | |
| 1409 | + | |
1411 | 1410 | | |
1412 | 1411 | | |
1413 | 1412 | | |
1414 | | - | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1415 | 1421 | | |
1416 | 1422 | | |
1417 | 1423 | | |
| |||
0 commit comments