vulkan/android: Add helper to probe AHB support
GetPhysicalDeviceImageFormatProperties() must that an image {format,
flags, usage} combo is unsupported if gralloc will not be able to
perform the allocation. The practical way to test this is to do a
small test allocation.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29090>
This commit is contained in:
@@ -31,6 +31,12 @@ AHardwareBuffer_allocate(const AHardwareBuffer_Desc *desc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
AHardwareBuffer_isSupported(const AHardwareBuffer_Desc* desc)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
const native_handle_t *
|
||||
AHardwareBuffer_getNativeHandle(const AHardwareBuffer *buffer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user