I have access to an Android device with ARM GPU. I'd like to use MGD for Vulkan application. According to MGD manual I have to contact you here. So, please tell me where can I download interceptor layer for vulkan for MGD?
Thank you.
Hi valentyn,
From MGD v3.4 onwards, we support the Vulkan API for tracing.
Mali Graphics Debugger - Mali Developer Center
Kind Regards,
Michael McGeagh
Thank you for the answer, but I already know that MGD 3.4 supports Vulkan. But documentation say
"
The MGD interceptor for Vulkan is implemented using the Vulkan layers system. Different layers can
be present on your target system or within you application itself. Layers must be enabled as part of the
system or as part of your application at runtime. To choose which layers are enabled you must specify
the layer names, for MGD the layer name is "VK_LAYER_ARM_MGD". The MGD daemon application
must be started on your target platform before the application you want to trace.
And
If you have access to a Mali device with Vulkan and would like to use MGD, please contact us using
the ARM Mali Graphics Community.
There's no separate layer shared library with distribution of MGD. I suppose this message says I have to contact ARM Mali Graphics Community to receive it. That's why I asked the question.
Apologies for the roundabout method here, but we weren't sure when we shipped 3.4.1 what the final method of using Vulkan layers on Android would look like, it will be improved for the next release.
The MGD interceptor libraries for OpenGL ES/EGL/OpenCL actually contain the Vulkan layer.
So if you:
You will have an MGD Vulkan layer.
To install:
If you have root:
Enable the layer using adb shell setprop debug.vulkan.layers VK_LAYER_ARM_MGD:
We've tested this on a Samsung Galaxy S7.
If you don't have root then package it with your app and enable it using the Vulkan API. We haven't actually had a chance to try this approach yet so I can't guarantee this will work.
As the documentation says the MGD daemon (or damon app for non-rooted devices) still needs to be installed and running in the normal way.
Hope that helps, let me know if it's not clear or it doesn't work.
Thanks,
Jon.
Hello Jonathan,
Thank you for the comprehensive explanation. That's help much. I'll try and let you know if it works in my case.