Skip to content

Commit 63d2983

Browse files
MicroYYintel-mediadev
authored andcommitted
[Media Common] [MCPY] [PDVT-SH] Fix linear to linear blt copy
Set corresponding block width for linear to linear YUY2 Y210 Y216 copy.
1 parent 9d970e2 commit 63d2983

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ MOS_STATUS BltStateNext::SetupBltCopyParam(
761761
// both input and output are linear surfaces.
762762
// upper layer overwrite the format from buffer to 2D surfaces. Then the BitsPerPixel may different.
763763
BitsPerPixel = inputBitsPerPixel >= outputBitsPerPixel ? inputBitsPerPixel : outputBitsPerPixel;
764+
blockWidth = inputSurface->pGmmResInfo->GetCompressionBlockWidth();
764765
}
765766
MCPY_NORMALMESSAGE("input BitsPerBlock %d, output BitsPerBlock %d, the vid mem BitsPerBlock %d",
766767
inputBitsPerPixel,

0 commit comments

Comments
 (0)