qemu-system-arm -m 1G -M virt,highmem=off -smp 1 -kernel zImage -drive file=rootfs.ext2,if=none,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -append "console=ttyAMA0,115200 rootwait root=/dev/vda" -net nic,model=virtio -net user -device virtio-gpu-pci -display sdl,gl=es ${EXTRA_ARGS}
virtio-pci 0000:00:01.0: enabling device (0100 -> 0103)
virtio-pci 0000:00:02.0: enabling device (0100 -> 0102)
[drm] pci: virtio-gpu-pci detected at 0000:00:02.0
[drm] features: -virgl +edid
[drm] number of scanouts: 1
[drm] number of cap sets: 0
[drm] Initialized virtio_gpu 0.1.0 0 for virtio2 on minor 0
###########
PLANE(ID=31, W=1280, H=800)
|
\ | /
CRCT(ID=33) --> ENCODER(ID=35) --> CONNECTED(ID=34) --> virtio_gpu
###########
# modetest -M virtio_gpu -c
Connectors:
id encoder status name size (mm) modes encoders
34 35 connected Virtual-1 320x200 26 35
modes:
index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot
#0 1280x800 74.99 1280 1600 1638 1728 800 804 808 828 107300 flags: nhsync, nvsync; type: preferred, driver
.................
# modetest -M virtio_gpu -e
Encoders:
id crtc type possible crtcs possible clones
35 33 Virtual 0x00000001 0x00000001
# modetest -M virtio_gpu -p
CRTCs:
id fb pos size
33 37 (0,0) (1280x800)
#0 1280x800 74.99 1280 1600 1638 1728 800 804 808 828 107300 flags: nhsync, nvsync; type: preferred, driver
props:
24 VRR_ENABLED:
flags: range
values: 0 1
value: 0
Planes:
id crtc fb CRTC x,y x,y gamma size possible crtcs
31 33 37 0,0 0,0 0 0x00000001
formats: XR24
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 1
32 0 0 0,0 0,0 0 0x00000001
formats: AR24
props:
8 type:
flags: immutable enum
enums: Overlay=0 Primary=1 Cursor=2
value: 2
#
###########
PLANE(ID=31, W=1280, H=800)
|
\ | /
CRCT(ID=33) --> ENCODER(ID=35) --> CONNECTED(ID=34) --> virtio_gpu
###########
# modetest -M virtio_gpu -s 34@33:1280x800 -P 31@33:1280x800 -Ftiles
random: fast init done
setting mode 1280x800-74.99Hz on connectors 34, crtc 33
failed to set gamma: Function not implemented
testing 1280x800@XR24 overlay plane 31