Skip to content

Commit 0f0d3bf

Browse files
authored
Changes to support clang14 in NEO
1 parent c70167b commit 0f0d3bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Source/GmmLib/inc/External/Common/GmmResourceInfoCommon.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ namespace GmmLib
458458
pPlatform = (GMM_PLATFORM_INFO *)GMM_OVERRIDE_EXPORTED_PLATFORM_INFO(&Surf, GetGmmLibContext());
459459

460460
__GMM_ASSERT(GFX_GET_CURRENT_RENDERCORE(pPlatform->Platform) >= IGFX_GEN8_CORE);
461+
GMM_UNREFERENCED_PARAMETER(pPlatform);
461462

462463
QPitch = static_cast<uint32_t>(Surf.OffsetInfo.Plane.ArrayQPitch / Surf.Pitch);
463464

@@ -1066,8 +1067,10 @@ namespace GmmLib
10661067
GMM_INLINE_VIRTUAL GMM_INLINE_EXPORTED GMM_GFX_SIZE_T GMM_STDCALL GetUnifiedAuxSurfaceOffset(GMM_UNIFIED_AUX_TYPE GmmAuxType)
10671068
{
10681069
GMM_GFX_SIZE_T Offset = 0;
1069-
const GMM_PLATFORM_INFO *pPlatform;
1070-
pPlatform = (GMM_PLATFORM_INFO *)GMM_OVERRIDE_EXPORTED_PLATFORM_INFO(&Surf, GetGmmLibContext());
1070+
const GMM_PLATFORM_INFO *pPlatform;
1071+
pPlatform = (GMM_PLATFORM_INFO *)GMM_OVERRIDE_EXPORTED_PLATFORM_INFO(&Surf, GetGmmLibContext());
1072+
GMM_UNREFERENCED_PARAMETER(pPlatform);
1073+
10711074
if (Surf.Flags.Gpu.UnifiedAuxSurface)
10721075
{
10731076
if ((GmmAuxType == GMM_AUX_CCS) || (GmmAuxType == GMM_AUX_SURF) || (GmmAuxType == GMM_AUX_Y_CCS)

0 commit comments

Comments
 (0)