WindowServer never called set_digital_out_mode on any of the four releases
(Ambrosia m3-max-12149: no "N timing modes" line, current mode 16383 x 16383,
every SkyLight size 0 x 0, IOSurface creation failing with e00002c2).
QuartzCore's IOMFBDisplay::update_framebuffer_locked reads an internal
display's TimingElements and ColorElements only when there are more than one
colour mode or at least two timings (read from 14.6.1's and 27.0.1's
QuartzCore). The paravirtual display publishes three colour modes. Ours
publishes one 8-bit colour mode, which is the only format the device scans
out, and the device lists one mode. With one of each, WindowServer adds its
placeholder mode, sets no mode, and takes the display's size from
get_display_size and get_display_area. Both answer from the class's display
size fields, which held 0 x 0 until a mode was set.
So start_hardware now sets the preferred timing, the first one
publishMobileModes lists, the same way set_digital_out_mode does: SET_SCANOUT
first, then the class's size fields in its gate, then DisplayWidth,
DisplayHeight and DPTimingModeId. The class's start calls start_hardware
last, so the size is there before WindowServer opens the framebuffer. When
WindowServer does pick a mode, set_digital_out_mode still sets it.
rgfxMobileStartTimingId picks the timing, and mobile_modes_test covers it.
This is arm64e code only, so the x86-64 kexts are unchanged.