Yours3lf / rpi-vk-driver

VK driver for the Raspberry Pi (Broadcom Videocore IV)
MIT License
1.23k stars 70 forks source link

All tests using Vuklan API fail with SEGFAULT #25

Closed fabiopolimeni closed 3 years ago

fabiopolimeni commented 3 years ago

Describe the bug Once the driver is built and installed following the instructions on the BUILD.md, I can't run any test that makes use of the Vulkan API, all of them fail with a SEGFAULT.

To Reproduce Execute test/mintest/mintest

Can't open device file: /dev/dri/card0
Error: No such file or directory
Sgmentation fault

Expected behavior The test should succeed with no error.

Device information (please complete the following information):

Additional context I guess the assumption at this line is no longer valid https://github.com/Yours3lf/rpi-vk-driver/blob/39bb5f20e39185bf41a636a238437d55dc6ded5a/driver/instance.c#L186

fabiopolimeni commented 3 years ago

Solved by adding dtoveraly=vc4-fkms-v3d to the config.txt file. Starting in CLI doesn't need it and for some reason, it was disabled. Adding it back fixed the issue.