detached bd4cecf

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 VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · 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() {
274274 }
275275 o.lut3dBlob = blob
276276 }
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")
277279 }
278280
279281 // 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 = blob275 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 (both281 // 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
196196 return
197197 }
198198 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")
200201 }
201202 func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) {
202203 if h.surf == nil || h.surf.destroyed {
@@ -204,7 +205,7 @@ func (h *colorSurface) UnsetImageDescription(r *cm.WpColorManagementSurfaceV1) {
204205 return
205206 }
206207 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")
208209 }
209210
210211 type colorFeedback struct {
@@ -196,7 +196,8 @@ func (h *colorSurface) SetImageDescription(r *cm.WpColorManagementSurfaceV1, des
196 return196 return
197 }197 }
198 h.surf.next.color = d.SurfaceColor198 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 return205 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 {

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 23

Tags 10

↑↓ moveenter openesc close