Skip to content

Commit 14e7f00

Browse files
weiyu-chenpaigeale
authored andcommitted
Fix gtpin version check
Change-Id: Idb0690a8610d819cb60a11c8003ad52767a1a8f3
1 parent bc4a6b3 commit 14e7f00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

IGC/AdaptorCommon/GTPinInterfaceUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ void* AllocGTPinDataBuffer(const IGC::SKernelProgram* program, const IGC::SProgr
3737
gtpin::igc::igc_info_t gtpinReturnStatus;
3838
memset(&gtpinReturnStatus, 0, sizeof(gtpinReturnStatus));
3939

40-
// Version check
41-
if (gtpinRequest->version != gtpin::igc::GTPIN_IGC_INTERFACE_VERSION)
40+
// Version check - allow higher gtpin version
41+
if ((int)gtpinRequest->version < (int)gtpin::igc::GTPIN_IGC_INTERFACE_VERSION)
4242
{
4343
bufferSize = 0;
4444
return nullptr;

0 commit comments

Comments
 (0)