Files
geramyloveless b004eb754d radv, libdrm-mlg: windowed frames follow the window, clipped, off when it leaves
- drmMlgPlaceWindow (libdrm-mlg) places one frame: the window's content
  and the monitor's screen in global points (CoreGraphics' space), the
  output's mode and the image. A screen point is crtc/screen pixels, which
  is the backing scale and the mode in one factor. A window that fills the
  screen (or is in native full screen there) gets the primary plane;
  otherwise an overlay plane at its rectangle in CRTC pixels, clipped to
  the CRTC with the matching crop of the image on every edge. A window off
  the monitor, or with less of it there than DC's 12-pixel smallest
  viewport (which DC would grow without saying), gets nothing, with the
  reason. No window or no screen keeps the old rules.
- LX_SCANOUT HIDE: the client's frames off the screen (the desktop back,
  the overlay off) while it stays attached and keeps its overlay plane.
- The WSI (radv-macos-display-wsi.patch) reads the window at every
  present, in global points, and uses drmMlgPlaceWindow. Off the monitor
  it hides once, logs it, keeps the game running paced at the refresh
  rate, and shows the frames again when the window comes back; going full
  screen on the monitor when the window is elsewhere is gone. A place that
  changed is checked with TEST before it is presented; a refusal names the
  rectangles and the scale. A layer at another size than the images makes
  presents VK_SUBOPTIMAL_KHR, so a resized window or a full-screen toggle
  gets new images.
- Tests: test-mlg-place (1x and 2x, screens at any global position, full
  screen, clipping on each edge and a corner, a scaled window clipped, off
  the screen, the viewport minimum, modes, refusals); test-scanout (HIDE,
  a cropped present after it, a crop past the framebuffer refused);
  test-radv-scanout (suboptimal presents for a layer of another size).
2026-10-04 09:32:48 -07:00
..