Skip to content

Commit cf26fa2

Browse files
authored
Fix UnifiedAuxSurface checks to allow MCS/HiZ w/o CCS
1 parent 9d24a19 commit cf26fa2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Source/GmmLib/Platform/GmmGen12Platform.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -422,19 +422,18 @@ uint8_t GmmLib::PlatformInfoGen12::ValidateCCS(GMM_TEXTURE_INFO &Surf)
422422
uint8_t GmmLib::PlatformInfoGen12::ValidateUnifiedAuxSurface(GMM_TEXTURE_INFO &Surf)
423423
{
424424

425-
if((Surf.Flags.Gpu.UnifiedAuxSurface) &&
426-
!( //--- Legitimate UnifiedAuxSurface Case ------------------------------------------
427-
Surf.Flags.Gpu.CCS &&
428-
((Surf.MSAA.NumSamples <= 1 && (Surf.Flags.Gpu.RenderTarget || Surf.Flags.Gpu.Texture)) ||
429-
((Surf.Flags.Gpu.Depth || Surf.Flags.Gpu.SeparateStencil || Surf.MSAA.NumSamples > 1)))))
425+
if ((Surf.Flags.Gpu.UnifiedAuxSurface) &&
426+
!( //--- Legitimate UnifiedAuxSurface Case ------------------------------------------
427+
(Surf.Flags.Gpu.CCS &&
428+
(Surf.MSAA.NumSamples <= 1 && (Surf.Flags.Gpu.RenderTarget || Surf.Flags.Gpu.Texture))) ||
429+
(Surf.Flags.Gpu.Depth || Surf.Flags.Gpu.SeparateStencil || Surf.MSAA.NumSamples > 1)))
430430
{
431431
GMM_ASSERTDPF(0, "Invalid UnifiedAuxSurface usage!");
432432
return 0;
433433
}
434434

435435
return 1;
436436
}
437-
438437
//=============================================================================
439438
//
440439
// Function: CheckFmtDisplayDecompressible

0 commit comments

Comments
 (0)