directfb2 / DirectFB2

Core DirectFB library
GNU Lesser General Public License v2.1
136 stars 16 forks source link

Invalid colour mode on qemu/virtio gpu with drmkms backend. #15

Closed fifteenhex closed 1 year ago

fifteenhex commented 2 years ago

I'll add some more details when I work it out but currently:

caramelli commented 2 years ago

The drmkms system module was one of the last developments made in the legacy DirectFB project and has not necessarily been tested very well on many platforms with different configurations. I have never played with qemu using virtio-gpu but it's something I should try.

fifteenhex commented 2 years ago

The drmkms system module was one of the last developments made in the legacy DirectFB project and has not necessarily been tested very well on many platforms with different configurations.

That makes sense. It worked fine with the DRM/KMS driver I wrote for my machine so I don't think it's far off.

I have never played with qemu using virtio-gpu but it's something I should try.

I think it will make your life easier with testing etc. My target machine only has 128MB of memory so it was very hard to get valgrind and gdb working there to debug the segfaults. A lot easier in QEMU :)

Anyhow,.. I will work this out and send a PR when I have a fix.

fifteenhex commented 2 years ago

Found a workaround for now: Setting pixelformat=RGB32 in .directfbrc allows df_fire etc to run.

fifteenhex commented 1 year ago

I think now that directfb asks for the mode from the kernel this is also fixed.