File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -351,7 +351,8 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmGen10TextureCalc::FillTex2D(GMM_TEXTURE_INFO *
351
351
{
352
352
uint32_t Alignment = VAlign;
353
353
if ((pTexInfo->Type == RESOURCE_3D && !pTexInfo->Flags .Info .Linear ) ||
354
- (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ))
354
+ (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ) ||
355
+ (pTexInfo->Flags .Wa .MediaPipeUsage ))
355
356
{
356
357
Alignment = pPlatform->TileInfo [pTexInfo->TileMode ].LogicalTileHeight ;
357
358
// Gmm uses TileY for Stencil allocations, having half TileW height (TileY width compensates)
Original file line number Diff line number Diff line change @@ -374,7 +374,8 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmGen12TextureCalc::FillTex2D(GMM_TEXTURE_INFO *
374
374
{
375
375
uint32_t Alignment = VAlign;
376
376
if ((pTexInfo->Type == RESOURCE_3D && !pTexInfo->Flags .Info .Linear ) ||
377
- (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ))
377
+ (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ) ||
378
+ (pTexInfo->Flags .Wa .MediaPipeUsage ))
378
379
{
379
380
Alignment = pPlatform->TileInfo [pTexInfo->TileMode ].LogicalTileHeight ;
380
381
}
Original file line number Diff line number Diff line change @@ -576,7 +576,8 @@ void GmmLib::GmmGen9TextureCalc::Fill2DTexOffsetAddress(GMM_TEXTURE_INFO *pTexIn
576
576
577
577
Alignment = pTexInfo->Alignment .VAlign ;
578
578
if ((pTexInfo->Type == RESOURCE_3D && !pTexInfo->Flags .Info .Linear ) ||
579
- (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ))
579
+ (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ) ||
580
+ (pTexInfo->Flags .Wa .MediaPipeUsage ))
580
581
{
581
582
Alignment = pPlatform->TileInfo [pTexInfo->TileMode ].LogicalTileHeight ;
582
583
// Gmm uses TileY for Stencil allocations, having half TileW height (TileY width compensates)
@@ -765,7 +766,8 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmGen9TextureCalc::FillTex2D(GMM_TEXTURE_INFO *
765
766
{
766
767
uint32_t Alignment = VAlign;
767
768
if ((pTexInfo->Type == RESOURCE_3D && !pTexInfo->Flags .Info .Linear ) ||
768
- (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ))
769
+ (pTexInfo->Flags .Gpu .S3dDx && pGmmLibContext->GetSkuTable ().FtrDisplayEngineS3d ) ||
770
+ (pTexInfo->Flags .Wa .MediaPipeUsage ))
769
771
{
770
772
Alignment = pPlatform->TileInfo [pTexInfo->TileMode ].LogicalTileHeight ;
771
773
// Gmm uses TileY for Stencil allocations, having half TileW height (TileY width compensates)
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ typedef struct GMM_RESOURCE_FLAG_REC
150
150
uint32_t DisableDisplayCcsClearColor : 1 ; // Disables display clear color
151
151
uint32_t DisableDisplayCcsCompression : 1 ; // Disables display decompression on the surface (it disables display awareness of both fast clear/render compression)
152
152
uint32_t PreGen12FastClearOnly : 1 ; // i.e. AUX_CCS_D (instead of AUX_CCS_E). Flag carried by GMM between UMDs to support shared resources.
153
- uint32_t Reserved : 1 ; // Reserved
153
+ uint32_t MediaPipeUsage : 1 ; // TileHeight Aligned ArrayQPitch on Tile4/TileY
154
154
} Wa ;
155
155
156
156
} GMM_RESOURCE_FLAG ;
You can’t perform that action at this time.
0 commit comments