vulkan/android: Add missing AHB format AHARDWAREBUFFER_FORMAT_R8_UNORM
What does this MR do and why?
AHARDWAREBUFFER_FORMAT_R8_UNORM
is one of the AHB formats which is not fully supported in mesa.
We currently need that since there are some new Android cts tests added: android.graphics.cts.GainmapTest#testDecodeFountainGainmap
and android.graphics.cts.BitmapTest#testNdkInfo
, The HDR image which is used in the test case requires AHARDWAREBUFFER_FORMAT_R8_UNORM, but now the driver doesn't support it.
When looking into the intel code, the implementation is there, format is converted to ISL_FORMAT_R8_UNORM
in src/intel/vulkan
.
I think the bits we miss here is just the format case in vk_android.c
.
Test: Apply the change and run the CtsGraphicsTestCases
, no new failed tests and the related failed tests passed.
Signed-off-by: dawnhan dawnhan@google.com