Skip to content

Commit 1f4fe32

Browse files
authored
Tile4 for YCrCb surface format
1 parent 73b00c2 commit 1f4fe32

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Source/GmmLib/Resource/GmmResourceInfoCommonEx.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,17 @@ bool GmmLib::GmmResourceInfoCommon::CopyClientParams(GMM_RESCREATE_PARAMS &Creat
9393
uint8_t IsYUVSurface = GmmIsPlanar(CreateParams.Format) ||
9494
(GmmIsYUVPacked(CreateParams.Format));
9595

96+
//YCRCB* formats
97+
uint8_t IsYCrCbSurface = ((CreateParams.Format == GMM_FORMAT_YCRCB_NORMAL) ||
98+
(CreateParams.Format == GMM_FORMAT_YCRCB_SWAPUV) ||
99+
(CreateParams.Format == GMM_FORMAT_YCRCB_SWAPUVY) || (CreateParams.Format == GMM_FORMAT_YCRCB_SWAPY));
100+
96101
CreateParams.Flags.Info.Tile4 = ((!GMM_IS_SUPPORTED_BPP_ON_TILE_64_YF_YS(BitsPerPixel)) || // 24,48,96 bpps are not supported on Tile64, Tile4 is bpp independent
97102
((CreateParams.Type == RESOURCE_3D) && (CreateParams.Flags.Gpu.Depth || CreateParams.Flags.Gpu.SeparateStencil)) ||
98103
((!GetGmmLibContext()->GetSkuTable().FtrDisplayDisabled) &&
99104
(CreateParams.Flags.Gpu.FlipChain || CreateParams.Flags.Gpu.Overlay)
100105
) ||
101-
IsYUVSurface);
106+
IsYUVSurface || IsYCrCbSurface);
102107

103108
CreateParams.Flags.Info.Tile64 = !CreateParams.Flags.Info.Tile4;
104109
// Optimize only when GMM makes tiling decision on behalf of UMD clients.

0 commit comments

Comments
 (0)