mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-01-28 05:53:08 +00:00
Add CPU_WRITE_RARELY flag
Without this flag, the test may fail with SEGV_ACCERR. Bug: 293475360 Test: Run test Change-Id: I2d7cfba94145239afde196567400c966a2769419
This commit is contained in:
@@ -124,7 +124,8 @@ class GrallocHalWrapper : public IGrallocHalWrapper {
|
||||
|
||||
private:
|
||||
static constexpr uint64_t kBufferUsage =
|
||||
static_cast<uint64_t>(BufferUsage::SENSOR_DIRECT_DATA | BufferUsage::CPU_READ_OFTEN);
|
||||
static_cast<uint64_t>(BufferUsage::SENSOR_DIRECT_DATA | BufferUsage::CPU_READ_OFTEN |
|
||||
BufferUsage::CPU_WRITE_RARELY);
|
||||
AllocatorWrapperT<AllocatorT> mAllocator;
|
||||
sp<MapperT> mMapper;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user