Skip to content

Commit 32d6b47

Browse files
jgu222igcbot
authored andcommitted
Internal feature
Change related to internal feature
1 parent ea46b3b commit 32d6b47

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

visa/HWCaps.inc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,12 +730,14 @@ SPDX-License-Identifier: MIT
730730

731731
bool hasTwoGRFBank16Bundles() const
732732
{
733-
return getPlatform() == XE_HP;
733+
const TARGET_PLATFORM P = getPlatform();
734+
return P == XE_HP;
734735
}
735736

736737
bool hasOneGRFBank16Bundles() const
737738
{
738-
return getPlatform() != XE_HP;
739+
const TARGET_PLATFORM P = getPlatform();
740+
return P != XE_HP;
739741
}
740742

741743
bool hasDPASSrc0Src1BankConflict() const
@@ -776,7 +778,8 @@ SPDX-License-Identifier: MIT
776778
// Note that this function is intentionally omitted from HWCapsOpen.inc to avoid IP leak
777779
bool hasThreeALUPipes() const
778780
{
779-
return (getPlatform() == XE_HP);
781+
const TARGET_PLATFORM P = getPlatform();
782+
return (P == XE_HP);
780783
}
781784

782785
bool hasFusedEUWA() const

0 commit comments

Comments
 (0)