backend-drm: reset CRTC_CTM
We are assuming that CRTC_CTM is pass-through, so better ensure it really is pass-through rather than whatever the previous KMS client left there. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
d1ca5f71ee
commit
e0d267fb12
@ -236,6 +236,7 @@ enum wdrm_content_type {
|
||||
enum wdrm_crtc_property {
|
||||
WDRM_CRTC_MODE_ID = 0,
|
||||
WDRM_CRTC_ACTIVE,
|
||||
WDRM_CRTC_CTM,
|
||||
WDRM_CRTC_DEGAMMA_LUT,
|
||||
WDRM_CRTC_DEGAMMA_LUT_SIZE,
|
||||
WDRM_CRTC_GAMMA_LUT,
|
||||
|
@ -165,6 +165,7 @@ const struct drm_property_info connector_props[] = {
|
||||
const struct drm_property_info crtc_props[] = {
|
||||
[WDRM_CRTC_MODE_ID] = { .name = "MODE_ID", },
|
||||
[WDRM_CRTC_ACTIVE] = { .name = "ACTIVE", },
|
||||
[WDRM_CRTC_CTM] = { .name = "CTM", },
|
||||
[WDRM_CRTC_DEGAMMA_LUT] = { .name = "DEGAMMA_LUT", },
|
||||
[WDRM_CRTC_DEGAMMA_LUT_SIZE] = { .name = "DEGAMMA_LUT_SIZE", },
|
||||
[WDRM_CRTC_GAMMA_LUT] = { .name = "GAMMA_LUT", },
|
||||
@ -1084,6 +1085,7 @@ drm_output_apply_state_atomic(struct drm_output_state *state,
|
||||
ret |= crtc_add_prop_zero_ok(req, crtc,
|
||||
WDRM_CRTC_DEGAMMA_LUT, 0);
|
||||
}
|
||||
ret |= crtc_add_prop_zero_ok(req, crtc, WDRM_CRTC_CTM, 0);
|
||||
|
||||
/* No need for the DPMS property, since it is implicit in
|
||||
* routing and CRTC activity. */
|
||||
|
Loading…
Reference in New Issue
Block a user