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:
Arthur Ishiguro
2023-08-09 17:18:56 +00:00
parent 2421fc70ae
commit 8c5976f06a

View File

@@ -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;