Skip to content

Commit 7c89d20

Browse files
aratajewsys_zuul
authored andcommitted
Fix token numbers for function pointer-related opcodes in SPIR-V Translator
Change-Id: Ie0d3ae8800b9d2a415b6746e11599cfafa55c3c6
1 parent 11b8ded commit 7c89d20

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

IGC/AdaptorOCL/SPIRV/libSPIRV/SPIRVOpCodeEnum.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ _SPIRV_OP(SubgroupImageBlockWriteINTEL, 5578)
343343
// media_block_io extension.
344344
_SPIRV_OP(SubgroupImageMediaBlockReadINTEL, 5580)
345345
_SPIRV_OP(SubgroupImageMediaBlockWriteINTEL, 5581)
346+
// Function pointers
347+
_SPIRV_OP(FunctionPointerINTEL, 5600)
348+
_SPIRV_OP(FunctionPointerCallINTEL, 5601)
346349
// device_side_avc_motion_estimation extension
347350
_SPIRV_OP(VmeImageINTEL, 5699)
348351
_SPIRV_OP(TypeVmeImageINTEL, 5700)
@@ -462,5 +465,3 @@ _SPIRV_OP(SubgroupAvcSicGetIpeChromaModeINTEL, 5813)
462465
_SPIRV_OP(SubgroupAvcSicGetPackedSkcLumaCountThresholdINTEL, 5814)
463466
_SPIRV_OP(SubgroupAvcSicGetPackedSkcLumaSumThresholdINTEL, 5815)
464467
_SPIRV_OP(SubgroupAvcSicGetInterRawSadsINTEL, 5816)
465-
_SPIRV_OP(FunctionPointerINTEL, 5817)
466-
_SPIRV_OP(FunctionPointerCallINTEL, 5818)

IGC/AdaptorOCL/SPIRV/libSPIRV/spirv.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ enum Decoration {
402402
DecorationMaxByteOffset = 45,
403403
DecorationNoSignedWrap = 4469,
404404
DecorationNoUnsignedWrap = 4470,
405-
DecorationReferencedIndirectlyINTEL = 5802,
405+
DecorationReferencedIndirectlyINTEL = 5602,
406406
};
407407

408408
enum BuiltIn {

0 commit comments

Comments
 (0)