Stream the panel as masked png deltas and seqlock the scanout reads

This commit is contained in:
flamingcow
2026-08-30 16:45:19 -07:00
parent dddff4d7e8
commit 45a531066c
3 changed files with 260 additions and 28 deletions
+8 -2
View File
@@ -1,5 +1,6 @@
// Runs cabletest for a fixed time and dumps the panel to png, since the machine
// with the display on it is not the machine looking at it.
// Runs cabletest for a fixed time, dumps the panel to png, and streams it as
// png deltas on :8080, since the machine with the display on it is not the
// machine looking at it.
//
// sudo go run ./harness -for 20s -at 3s,15s -- -a enp1s0f0np0 -b enp1s0f1np1
package main
@@ -37,6 +38,11 @@ func main() {
fuzzN := flag.Int("fuzz", 0, "repeat the whole lifecycle this many times; full output only for runs that fail or log module events")
flag.Parse()
if err := serveStream(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
var err error
if *fuzzN > 0 {
err = fuzz(*fuzzN, *runFor, flag.Args())