File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,11 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmGen12TextureCalc::FillTex2D(GMM_TEXTURE_INFO *
328
328
((pTexInfo->Flags .Gpu .Depth || pTexInfo->Flags .Gpu .SeparateStencil ||
329
329
(GMM_IS_64KB_TILE (pTexInfo->Flags ) || pTexInfo->Flags .Info .TiledYf )) ? // MSAA Ys/Yf samples are ALSO stored as array planes, calculate size for single sample and expand it later.
330
330
1 :
331
- pTexInfo->MSAA .NumSamples ) * // MSAA (non-Depth/Stencil) RT samples stored as array planes.
331
+ pTexInfo->MSAA .NumSamples ) * // MSAA (non-Depth/Stencil) RT samples stored as array planes.
332
+ ((pTexInfo->Flags .Gpu .Depth || pTexInfo->Flags .Gpu .SeparateStencil ) ? // Depth/Stencil MSAA surface is expanded through Width and Depth
333
+ 1 :
332
334
((GMM_IS_64KB_TILE (pTexInfo->Flags ) && !pGmmLibContext->GetSkuTable ().FtrTileY && (pTexInfo->MSAA .NumSamples == 16 )) ? 4 : // MSAA x8/x16 stored as pseudo array planes each with 4x samples
333
- (GMM_IS_64KB_TILE (pTexInfo->Flags ) && !pGmmLibContext->GetSkuTable ().FtrTileY && (pTexInfo->MSAA .NumSamples == 8 )) ? 2 : 1 );
335
+ (GMM_IS_64KB_TILE (pTexInfo->Flags ) && !pGmmLibContext->GetSkuTable ().FtrTileY && (pTexInfo->MSAA .NumSamples == 8 )) ? 2 : 1 )) ;
334
336
335
337
if (GMM_IS_64KB_TILE (pTexInfo->Flags ) || pTexInfo->Flags .Info .TiledYf )
336
338
{
@@ -497,7 +499,6 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmGen12TextureCalc::FillTex2D(GMM_TEXTURE_INFO *
497
499
{
498
500
Fill2DTexOffsetAddress (pTexInfo);
499
501
}
500
-
501
502
GMM_DPF_EXIT;
502
503
503
504
return (Status);
You can’t perform that action at this time.
0 commit comments