diff options
author | alan-baker <alanbaker@google.com> | 2021-11-11 00:32:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 00:32:09 +0300 |
commit | 21e3f681e2004590c7865bc8c0195a4ab8e66c88 (patch) | |
tree | 72dd56c200037a77e9cb2ab7e0bac372d9d29b51 | |
parent | b014238e0836d4e96b28ff7ac3b383025f048f80 (diff) |
Update SPIRV-Headers (#4628)sdk-1.2.198.0sdk-1.2.198
* Fix compile
* Fix test
-rw-r--r-- | DEPS | 2 | ||||
-rw-r--r-- | source/opt/reflect.h | 2 | ||||
-rw-r--r-- | test/opt/ir_loader_test.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ vars = { 'effcee_revision': 'ddf5e2bb92957dc8a12c5392f8495333d6844133', 'googletest_revision': 'bf0701daa9f5b30e5882e2f8f9a5280bcba87e77', 're2_revision': '4244cd1cb492fa1d10986ec67f862964c073f844', - 'spirv_headers_revision': '29817199b7069bac971e5365d180295d4b077ebe', + 'spirv_headers_revision': '814e728b30ddd0f4509233099a3ad96fd4318c07', } deps = { diff --git a/source/opt/reflect.h b/source/opt/reflect.h index ffd2805a4..c2ffb0beb 100644 --- a/source/opt/reflect.h +++ b/source/opt/reflect.h @@ -52,7 +52,7 @@ inline bool IsTypeInst(SpvOp opcode) { } inline bool IsConstantInst(SpvOp opcode) { return (opcode >= SpvOpConstantTrue && opcode <= SpvOpSpecConstantOp) || - opcode == SpvOpConstFunctionPointerINTEL; + opcode == SpvOpConstantFunctionPointerINTEL; } inline bool IsCompileTimeConstantInst(SpvOp opcode) { return opcode >= SpvOpConstantTrue && opcode <= SpvOpConstantNull; diff --git a/test/opt/ir_loader_test.cpp b/test/opt/ir_loader_test.cpp index 6eafcd9dc..ccdd032ee 100644 --- a/test/opt/ir_loader_test.cpp +++ b/test/opt/ir_loader_test.cpp @@ -115,7 +115,7 @@ TEST(IrBuilder, RoundTripFunctionPointer) { "%float = OpTypeFloat 32\n" "%4 = OpTypeFunction %float %float\n" "%_ptr_Function_4 = OpTypePointer Function %4\n" - "%ptr_to_function = OpConstFunctionPointerINTEL %_ptr_Function_4 " + "%ptr_to_function = OpConstantFunctionPointerINTEL %_ptr_Function_4 " "%some_function\n" "%some_function = OpFunction %float Const %4\n" "%6 = OpFunctionParameter %float\n" |