Skip to content

Commit

Permalink
[Media Common] [VP] [Libva] Fix export surface handle w/ composite mode
Browse files Browse the repository at this point in the history
missed num_layers settings when libva export surface handle w/ composit mode
  • Loading branch information
Guangyao-Bai authored and intel-mediadev committed Jan 19, 2024
1 parent d10d6e4 commit 41989d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions media_softlet/linux/common/ddi/media_libva_interface_next.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41989d8

Please sign in to comment.