mirror of
https://github.com/openharmony/third_party_spirv-tools.git
synced 2026-07-21 03:35:25 -04:00
Don't check kernel entry-point signatures.
Recognize SpvOpInBoundsPtrAccessChain and SpvOpPtrAccessChain as opcodes returning a pointer. * spvOpcodeIsPointer: recognize SpvOpInBoundsPtrAccessChain and SpvOpPtrAccessChain as opcodes returning a pointer * isValid<SpvOpEntryPoint>: don't check kernel function signatures (these don't have to be 'void main(void)') * added tests for kernel OpEntryPoint, OpInBoundsPtrAccessChain and OpPtrAccessChain, as well as facilities to actually test kernel/OpenCL SPIR-V * fixed pow and pown specification (both should take 2 parameters), spec bug reported at https://www.khronos.org/bugzilla/show_bug.cgi?id=1469 * use ASSERT_TRUE instead of ASSERT_EQ * added pow and pown test (pow(val, 2.0f) and pown(val, 3)) Revert " * fixed pow and pown specification (both should take 2 parameters), spec bug reported at https://www.khronos.org/bugzilla/show_bug.cgi?id=1469" This reverts commit c3d5a87e73334b25aa4278964eea6d1c7625cd81. Revert " * added pow and pown test (pow(val, 2.0f) and pown(val, 3))" This reverts commit 7624aec720a51dc212704dc92eff6ae3634d2d6c.
This commit is contained in:
committed by
Dejan Mircevski
parent
c31a31942b
commit
680f9b7ef1
@@ -470,7 +470,9 @@ int32_t spvOpcodeIsPointer(const SpvOp opcode) {
|
||||
switch (opcode) {
|
||||
case SpvOpVariable:
|
||||
case SpvOpAccessChain:
|
||||
case SpvOpPtrAccessChain:
|
||||
case SpvOpInBoundsAccessChain:
|
||||
case SpvOpInBoundsPtrAccessChain:
|
||||
case SpvOpFunctionParameter:
|
||||
return true;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user