Vts: Add missing usage to buffer

The test's buffer is read by the GPU and therefore needs to be allocatted with
BufferUsage::GPU_TEXTURE

Fixes: 182935868
Change-Id: I7795e6a32acdf3ecf76003bd12715fcaf73a4e71
Test: VtsHalGraphicsComposerV2_2TargetTest
This commit is contained in:
Ady Abraham
2021-03-16 23:59:45 +00:00
parent 9f79971142
commit 203bdee456

View File

@@ -268,7 +268,7 @@ TestBufferLayer::TestBufferLayer(const std::shared_ptr<ComposerClient>& client,
mLayerCount = 1;
mFormat = format;
mUsage = static_cast<uint64_t>(BufferUsage::CPU_READ_OFTEN | BufferUsage::CPU_WRITE_OFTEN |
BufferUsage::COMPOSER_OVERLAY);
BufferUsage::COMPOSER_OVERLAY | BufferUsage::GPU_TEXTURE);
mAccessRegion.top = 0;
mAccessRegion.left = 0;