mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Allow for failure in allocation for MapperVts" into rvc-dev
This commit is contained in:
@@ -90,6 +90,9 @@ std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& de
|
||||
mAllocator->allocate(
|
||||
descriptor, count,
|
||||
[&](const auto& tmpError, const auto& tmpStride, const auto& tmpBuffers) {
|
||||
if (allowFailure && tmpError == Error::UNSUPPORTED) {
|
||||
return;
|
||||
}
|
||||
ASSERT_EQ(Error::NONE, tmpError) << "failed to allocate buffers";
|
||||
ASSERT_EQ(count, tmpBuffers.size()) << "invalid buffer array";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user