File tree 1 file changed +7
-2
lines changed
media_softlet/agnostic/common/shared/mediacopy
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -574,8 +574,7 @@ void VeboxCopyStateNext::AdjustSurfaceFormat(MOS_SURFACE &surface)
574
574
{
575
575
if (surface.Format == Format_R10G10B10A2 ||
576
576
surface.Format == Format_B10G10R10A2 ||
577
- surface.Format == Format_Y410 ||
578
- surface.Format == Format_Y210)
577
+ surface.Format == Format_Y410)
579
578
{
580
579
// RGB10 not supported without IECP. Re-map RGB10/RGB10 as AYUV
581
580
// Y410/Y210 has HW issue. Remap to AYUV.
@@ -585,6 +584,12 @@ void VeboxCopyStateNext::AdjustSurfaceFormat(MOS_SURFACE &surface)
585
584
{
586
585
surface.Format = Format_P8;
587
586
}
587
+ if (surface.Format == Format_Y216 || surface.Format == Format_Y210)
588
+ {
589
+ surface.Format = Format_Y416;
590
+ surface.dwWidth = MOS_ALIGN_CEIL (surface.dwWidth , 2 );
591
+ surface.dwWidth /= 2 ;
592
+ }
588
593
}
589
594
590
595
MOS_STATUS VeboxCopyStateNext::CreateGpuContext (
You can’t perform that action at this time.
0 commit comments