From 41989d82fa90119ef42ca7e736a04766c9596717 Mon Sep 17 00:00:00 2001 From: Bai_Guiangyao Date: Fri, 19 Jan 2024 12:49:10 +0800 Subject: [PATCH] [Media Common] [VP] [Libva] Fix export surface handle w/ composite mode missed num_layers settings when libva export surface handle w/ composit mode --- media_softlet/linux/common/ddi/media_libva_interface_next.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media_softlet/linux/common/ddi/media_libva_interface_next.cpp b/media_softlet/linux/common/ddi/media_libva_interface_next.cpp index 85f3fdde9aa..3bc8445c4c1 100644 --- a/media_softlet/linux/common/ddi/media_libva_interface_next.cpp +++ b/media_softlet/linux/common/ddi/media_libva_interface_next.cpp @@ -3622,6 +3622,10 @@ VAStatus MediaLibvaInterfaceNext::InitSurfaceDescriptorWithoutAuxTableMgr( if(compositeObject) { + desc->num_layers = 1; + desc->layers[0].drm_format = formats[0]; + desc->layers[0].num_planes = planesNum; + for (int i = 0; i < planesNum; i++) { desc->layers[0].object_index[i] = 0;