Merge "Remove length check to allow empty HDR10+ blobs to HWC" am: 2b42a74573 am: a7f01798f5

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2374997

Change-Id: I95839f054359c31c66c51ce4d55eb0d9994077f3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sally Qi
2023-01-13 19:48:44 +00:00
committed by Automerger Merge Worker

View File

@@ -73,9 +73,7 @@ class ComposerCommandEngine : public V2_2::hal::ComposerCommandEngine {
} }
bool executeSetLayerPerFrameMetadataBlobs(uint16_t length) { bool executeSetLayerPerFrameMetadataBlobs(uint16_t length) {
// must have at least one metadata blob if (length == 0) {
// of at least size 1 in queue (i.e {/*numBlobs=*/1, key, size, blob})
if (length < 4) {
return false; return false;
} }