dvdhrm / docs

API Documentations, HowTos and Tutorials
450 stars 229 forks source link

modeset.c shows justa black screen in QEMU aarch64 -device virtio-gpu-pci #7

Open cirosantilli opened 6 years ago

cirosantilli commented 6 years ago

Worked on x86_64 however.

This is the precise setups: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/a64b276e9c02719a3e620c75aaa1ec490b240851#drm

I have copoied modeset.c in that repo in tree: https://github.com/cirosantilli/linux-kernel-module-cheat/blob/16de55dd2f89ae44c1ee0fee1c39d23ee2b36b13/kernel_module/user/libdrm_modeset.c at revision: fad7c3203b14e67053e0fc41d8490138b8ff47dd

kmscube however worked fine for both x86_64 and aarch64, so maybe it is a bug here?

marler8997 commented 6 years ago

Have the same issue. Note that I'm using virgl acceleration. The modeset example results in a black screen but the modeset-vsync and modeset-double-buffered work. I don't know how you got graphics to work with qemu on arm, I had to modify qemu to add the hardware panel to get it to work. In any case, my guess is this is an issue with qemu and not with this example.

henke96 commented 2 years ago

Adding a call to drmModeDirtyFB() after drawing fixed this for me.