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

Commit fc21e8b3 authored by John Reck's avatar John Reck
Browse files

Adjust IMapperMetadataTypes.h to match gralloc4 encoding

Specifically include the header encoding. Initially
omitted as it's a bit redundant, the value in having
bit-for-bit identical encoding between gralloc4 &
imapper5 seems worthwhile enough to keep it.

Test: impltests + VtsHalGraphicsMapperStableC
Change-Id: Iee37bb97acf40362c301a06f9118938b1a0c2cd9
parent 51a239a3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -61,6 +61,10 @@ cc_test {
    srcs: [
        "implutils/impltests.cpp",
    ],
    shared_libs: [
        "libgralloctypes",
        "libhidlbase",
    ],
    visibility: [":__subpackages__"],
    cpp_std: "experimental",
}
+290 −70

File changed.

Preview size limit exceeded, changes collapsed.

+86 −39

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ class GraphicsTestsBase {
            sizeRequired = mapper()->v5.getStandardMetadata(bufferHandle, static_cast<int64_t>(T),
                                                            buffer.data(), buffer.size());
        }
        if (sizeRequired < 0 || sizeRequired >= buffer.size()) {
        if (sizeRequired < 0 || sizeRequired > buffer.size()) {
            ADD_FAILURE() << "getStandardMetadata failed, received " << sizeRequired
                          << " with buffer size " << buffer.size();
            // Generate a fail type