Swap in the Riverdi RVT70 panel, flip the rotation, and stop ^C orphaning harness runs

This commit is contained in:
flamingcow
2026-08-28 21:04:55 -07:00
parent e3de27a251
commit 2166a456a3
12 changed files with 1719 additions and 10 deletions
+3 -3
View File
@@ -56,11 +56,11 @@ type framebuffer struct {
}
func (fb *framebuffer) offset(x, y int) int {
return drm.Offset(x, y, fb.stride, fb.pw)
return drm.Offset(x, y, fb.stride, fb.ph)
}
func (fb *framebuffer) fromPanel(x, y int) (int, int) {
return y, fb.pw - 1 - x
return fb.ph - 1 - y, x
}
func cardResources(fd int) (crtcs, conns []uint32, err error) {
@@ -364,7 +364,7 @@ func (fb *framebuffer) rect(x0, y0, w, h int, c rgb) {
}
span := fb.pixelRun((y1-y0)*4, c)
for x := x0; x < x1; x++ {
copy(fb.back[fb.offset(x, y1-1):], span)
copy(fb.back[fb.offset(x, y0):], span)
}
}