Skip to content

Commit c88e772

Browse files
MicroYYintel-mediadev
authored andcommitted
[Media Common] [MCPY] [PDVT-SH] Remap Y210/Y216 to Y416 for VE Copy
Remap Y210 and Y216 to Y416 and set half width for tile64.
1 parent 756450b commit c88e772

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

media_softlet/agnostic/common/shared/mediacopy/media_vebox_copy_next.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,7 @@ void VeboxCopyStateNext::AdjustSurfaceFormat(MOS_SURFACE &surface)
574574
{
575575
if (surface.Format == Format_R10G10B10A2 ||
576576
surface.Format == Format_B10G10R10A2 ||
577-
surface.Format == Format_Y410 ||
578-
surface.Format == Format_Y210)
577+
surface.Format == Format_Y410)
579578
{
580579
// RGB10 not supported without IECP. Re-map RGB10/RGB10 as AYUV
581580
// Y410/Y210 has HW issue. Remap to AYUV.
@@ -585,6 +584,12 @@ void VeboxCopyStateNext::AdjustSurfaceFormat(MOS_SURFACE &surface)
585584
{
586585
surface.Format = Format_P8;
587586
}
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+
}
588593
}
589594

590595
MOS_STATUS VeboxCopyStateNext::CreateGpuContext(

0 commit comments

Comments
 (0)