Skip to content
Snippets Groups Projects
Commit aba57b11 authored by Tapani Pälli's avatar Tapani Pälli
Browse files

anv: support GetSwapchainGrallocUsage2ANDROID for Android


New function supports gralloc1 usage flags that get set separately
for producer and consumer. As we still need to support old method too,
let's share common code and use android_convertGralloc0To1Usage helper.
Bump the VK_ANDROID_native_buffer version to indicate support for the
new call.

Changes were tested on Android Celadon P with Basemark GPU and various
Sascha Willems Vulkan demos.

Signed-off-by: default avatarTapani Pälli <tapani.palli@intel.com>
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
parent 51c3ab61
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment