I'm currently developing an Android App that uses the Android Studio NDK's Vulkan library.
I've been trying to test my code on a Samsung SM-T510 Tablet (with an ARM Mali G71), it seems like it's having an issue with one of the Vulkan function calls.
The device has no problem calling functions for enumerating physical devices, creating an instance, devices, and buffers.
However, calling vkCreateComputePipeline is returning an error code. (VK_ERROR_INITIALIZATION_FAILED)
I have tried running with both sample and empty kernel code but the issue was still there.
Is there anything that I need to do to enable compute pipelines? Or does this device don't support compute pipelines in the first place?
If it helps, the app is currently on GitHub: the high-level functionality is here:
The Vulkan calls are wrapped in "easyvk" library, and the problematic line is here:
Here is a couple of additional things that I've tried:
Adding to what Pete is saying (which I completely second), clspv uses non-semantic instructions to describe the shader<->runtime interface. You will have to either parse these instructions in your application (you can look at https://github.com/kpet/clvk/blob/master/src/program.cpp#L60 for an example of how to do that) or generate a descriptor map using clspv-reflection (https://github.com/google/clspv/tree/master/tools/reflection). Note that this latter path is deprecated.
What you've done in your test application (i.e. assuming bindings are assigned in order to buffer arguments) isn't guaranteed to work. It might for simple cases but is not a reliable solution.