mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
After https://github.com/KhronosGroup/SPIRV-Tools/pull/6027 spirv-val is now rejecting `Aligned 0` Memory Operands. This causes the spirv_new test binary to no longer build with a recent SPIRV-Tools version. Mechanically remove all occurrences of `Aligned 0` in the SPIR-V assembly files. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
41 lines
1.8 KiB
Plaintext
41 lines
1.8 KiB
Plaintext
; SPIR-V
|
|
; Version: 1.0
|
|
; Generator: Khronos SPIR-V Tools Assembler; 0
|
|
; Bound: 22
|
|
; Schema: 0
|
|
OpCapability Addresses
|
|
OpCapability Linkage
|
|
OpCapability Kernel
|
|
OpMemoryModel Physical32 OpenCL
|
|
OpEntryPoint Kernel %1 "opaque" %gl_GlobalInvocationID
|
|
OpName %in "in"
|
|
OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
|
|
OpDecorate %gl_GlobalInvocationID Constant
|
|
OpDecorate %in FuncParamAttr NoCapture
|
|
OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
|
|
OpDecorate %4 LinkageAttributes "opaque_store" Import
|
|
%uint = OpTypeInt 32 0
|
|
%v3uint = OpTypeVector %uint 3
|
|
%_ptr_Input_v3uint = OpTypePointer Input %v3uint
|
|
%void = OpTypeVoid
|
|
%float = OpTypeFloat 32
|
|
%Opaque_opaque_t = OpTypeOpaque "opaque_t"
|
|
%_ptr_CrossWorkgroup_Opaque_opaque_t = OpTypePointer CrossWorkgroup %Opaque_opaque_t
|
|
%float_3_14159274 = OpConstant %float 3.14159274
|
|
%13 = OpTypeFunction %void %_ptr_CrossWorkgroup_Opaque_opaque_t
|
|
%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3uint Input
|
|
%14 = OpTypeFunction %void %_ptr_CrossWorkgroup_Opaque_opaque_t %uint %float
|
|
%4 = OpFunction %void None %14
|
|
%15 = OpFunctionParameter %_ptr_CrossWorkgroup_Opaque_opaque_t
|
|
%16 = OpFunctionParameter %uint
|
|
%17 = OpFunctionParameter %float
|
|
OpFunctionEnd
|
|
%1 = OpFunction %void None %13
|
|
%in = OpFunctionParameter %_ptr_CrossWorkgroup_Opaque_opaque_t
|
|
%18 = OpLabel
|
|
%19 = OpLoad %v3uint %gl_GlobalInvocationID
|
|
%20 = OpCompositeExtract %uint %19 0
|
|
%21 = OpFunctionCall %void %4 %in %20 %float_3_14159274
|
|
OpReturn
|
|
OpFunctionEnd
|