Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cirosantilli opened this issue Jun 2, 2018 · 2 comments

Comments

@cirosantilli
Copy link

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: fad7c32

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

@cirosantilli cirosantilli changed the title modeset.c shows justa black screen in QEMU aarch64 modeset.c shows justa black screen in QEMU aarch64 -device virtio-gpu-pci Jun 2, 2018
@marler8997
Copy link

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
Copy link

henke96 commented Mar 13, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants