feat(color): log surface colour descriptions and plane colour objects at info
- commit
- bd4cecf460d2e3621f26ca992fb50f373b95d157
- author
- brice · · 2026-10-23 05:27 UTC
- parent
- 8c84a60
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
2 files · +5 -2
M internal/adapters/drm/colorop.go +2 -0
| @@ -274,6 +274,8 @@ func (o *Output) setupColor() { | |||
| 274 | 274 | } | |
| 275 | 275 | o.lut3dBlob = blob | |
| 276 | 276 | } | |
| 277 | + | o.log.Info().Str("connector", o.conn.name).Float64("multiplier", float64(o.hdr.settings.SDRBrightness)/80). | |
| 278 | + | Uint32("lut3d_size", o.lut3dSize()).Msg("plane colour objects") | |
| 277 | 279 | } | |
| 278 | 280 | ||
| 279 | 281 | // lut3dSize is the dimension of the 3D LUT the planes' pipelines have (both | |
| @@ -274,6 +274,8 @@ func (o *Output) setupColor() { | |||||
| 274 | } | 274 | } | ||
| 275 | o.lut3dBlob = blob | 275 | o.lut3dBlob = blob | ||
| 276 | } | 276 | } | ||
| 277 | + | o.log.Info().Str("connector", o.conn.name).Float64("multiplier", float64(o.hdr.settings.SDRBrightness)/80). | |||
| 278 | + | Uint32("lut3d_size", o.lut3dSize()).Msg("plane colour objects") | |||
| 277 | } | 279 | } | ||
| 278 | 280 | ||||
| 279 | // lut3dSize is the dimension of the 3D LUT the planes' pipelines have (both | 281 | // lut3dSize is the dimension of the 3D LUT the planes' pipelines have (both | ||
M internal/adapters/wayland/colormanagement.go +3 -2
| @@ -196,7 +196,8 @@ func (h *colorSurface) SetImageDescription(r *cm.WpColorManagementSurfaceV1, des | |||
| 196 | 196 | return | |
| 197 | 197 | } | |
| 198 | 198 | h.surf.next.color = d.SurfaceColor | |
| 199 | - | h.surf.server.log.Debug().Uint32("tf", d.TF).Uint32("primaries", d.Primaries).Msg("surface color description set") | |
| 199 | + | h.surf.server.log.Info().Uint64("id", uint64(h.surf.windowID())).Uint32("tf", d.TF).Uint32("primaries", d.Primaries). | |
| 200 | + | Uint32("max_cll", d.MaxCLL).Uint32("max_fall", d.MaxFALL).Uint32("intent", intent).Msg("surface color description set") | |
| 200 | 201 | } | |
| 201 | 202 | func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) { | |
| 202 | 203 | if h.surf == nil || h.surf.destroyed { | |
| @@ -204,7 +205,7 @@ func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) { | |||
| 204 | 205 | return | |
| 205 | 206 | } | |
| 206 | 207 | h.surf.next.color = SurfaceColor{} | |
| 207 | - | h.surf.server.log.Debug().Msg("surface color description unset") | |
| 208 | + | h.surf.server.log.Info().Uint64("id", uint64(h.surf.windowID())).Msg("surface color description unset") | |
| 208 | 209 | } | |
| 209 | 210 | ||
| 210 | 211 | type colorFeedback struct { | |
| @@ -196,7 +196,8 @@ func (h *colorSurface) SetImageDescription(r *cm.WpColorManagementSurfaceV1, des | |||||
| 196 | return | 196 | return | ||
| 197 | } | 197 | } | ||
| 198 | h.surf.next.color = d.SurfaceColor | 198 | h.surf.next.color = d.SurfaceColor | ||
| 199 | - | h.surf.server.log.Debug().Uint32("tf", d.TF).Uint32("primaries", d.Primaries).Msg("surface color description set") | 199 | + | h.surf.server.log.Info().Uint64("id", uint64(h.surf.windowID())).Uint32("tf", d.TF).Uint32("primaries", d.Primaries). |
| 200 | + | Uint32("max_cll", d.MaxCLL).Uint32("max_fall", d.MaxFALL).Uint32("intent", intent).Msg("surface color description set") | |||
| 200 | } | 201 | } | ||
| 201 | func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) { | 202 | func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) { | ||
| 202 | if h.surf == nil || h.surf.destroyed { | 203 | if h.surf == nil || h.surf.destroyed { | ||
| @@ -204,7 +205,7 @@ func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) { | |||||
| 204 | return | 205 | return | ||
| 205 | } | 206 | } | ||
| 206 | h.surf.next.color = SurfaceColor{} | 207 | h.surf.next.color = SurfaceColor{} | ||
| 207 | - | h.surf.server.log.Debug().Msg("surface color description unset") | 208 | + | h.surf.server.log.Info().Uint64("id", uint64(h.surf.windowID())).Msg("surface color description unset") |
| 208 | } | 209 | } | ||
| 209 | 210 | ||||
| 210 | type colorFeedback struct { | 211 | type colorFeedback struct { | ||