Hi,
I'm trying to run a Vulkan application and render directly to the display without using any Window Manager/Display Server. My SoC is i.Mx8M (nitrogen8M board from Boundary Devices). Does NXP support to render directly to the display as I'm trying to do? Any example anyone can provide?
To test if this works I have cross-compiled Vulkan-Samples with help of a SDK built with Yocto (dunfell branch).
$ source <sdk-path>/environment-setup-aarch64-fslc-linux
$ git clone https://github.com/KhronosGroup/Vulkan-Samples.git
$ cd Vulkan-Samples && mkdir armbuild && cd armbuild
$ cmake -DVKB_DIRECT_2_DISPLAY=true ..
$ make -j4
$ scp app/bin/Release/aarch64/vulkan_samples <to-target>:
On target:
$ ./vulkan_samples --test hello_triangle
[info] Logger initialized
[info] Window created
[info] Initializing vulkan instance.
[info] Enabled Validation Layers:
[info] Found GPU: VeriSilicon
[warning] Couldn't find a discrete physical device, picking default GPU
[info] Initializing vulkan device.
[info] format_count 1 formats[0].format 44
[er[13733.152366] 002: audit: type=1701 audit(1599040557.574:11): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=310 comm
="vulkan_samples" exe="/home/root/vulkan_samples" sig=6 res=1
ror] [samples/api/hello_triangle/hello_triangle.cpp:535] Detected Vulkan error: ERROR_OUT_OF_DATE_KHR
Aborted
The example bails out here: https://github.com/KhronosGroup/Vulkan-Samples/blob/fb6bab484199c9406ba1b2ffbadb91971c519b14/samples... with the error code ERROR_OUT_OF_DATE_KHR.
Package versions:
libvulkan1-1.2.135.0-r0.aarch64.rpm
libvulkan-imx-6.4.0.p2.0+aarch64-r0.aarch64_mx8m.rpm
kernel-module-imx-gpu-viv-6.4.0.p2.4+fslc+git0+f2e8483fbd-r0.nitrogen8m.rpm
kernel-5.4.50-rt32+gde0fe9b79719-5.4.50+git0+503a3dce96-r0.nitrogen8m.rpm (linux-boundary)
I hope I can get some hints to get forward and information if the use case I'm trying is something that shall be possible on i.Mx8M.
Thanks,
/Peter