Does not work on Gen10 AMD
I was playing around with libmks (actually I was playing with the dmabuf branch, but the same goes for main) and this is what things look like:
This is the result of following the README and launching a qemu with qemu-system-x86_64 -enable-kvm -cpu host -device virtio-vga-gl,xres=1920,yres=1080 -m 8G -smp 4 -display dbus,gl=on -cdrom ~/Fedora-Workstation-Live-x86_64-39-20231103.n.0.iso -hda fedora.img -boot d
and then connecting to it simply via build/tools/mks
or GDK_DEBUG=gl-gles build/tools/mks
.
Using qemu-system-x86_64 -enable-kvm -cpu host -device virtio-vga,xres=1920,yres=1080 -m 8G -smp 4 -display dbus -cdrom ~/Fedora-Workstation-Live-x86_64-39-20231103.n.0.iso -hda fedora.img -boot d
- ie the same command line but without GL - works fine.
I believe this is caused by improper management of the dmabuf - potentially by failing to send sufficient information about the dmabuf, because what arrives is a dmabuf with DRM_FORMAT_XBGR8888
and DRM_MODIFIER_INVALID
. eglCreateImage()
imports that dmabuf successfully but then displays the above image.
It's likely that this isn't an issue with libmks but with qemu or Mesa or whatever else, but I have no idea where I should file it, so I'm putting it here.