Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 203bdee4 authored by Ady Abraham's avatar Ady Abraham
Browse files

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
parent 9f799711
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;