| <dawn>/test/tint/diagnostic_filtering/loop_continuing_attribute.wgsl:5:11 warning: 'dpdx' must only be called from uniform control flow | |
| _ = dpdx(1.0); | |
| ^^^^^^^^^ | |
| <dawn>/test/tint/diagnostic_filtering/loop_continuing_attribute.wgsl:6:7 note: control flow depends on possibly non-uniform value | |
| break if x > 0.0; | |
| ^^^^^ | |
| <dawn>/test/tint/diagnostic_filtering/loop_continuing_attribute.wgsl:6:16 note: user-defined input 'x' of 'main' may be non-uniform | |
| break if x > 0.0; | |
| ^ | |
| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 50 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %main "main" %main_loc0_Input | |
| OpExecutionMode %main OriginUpperLeft | |
| OpName %main_loc0_Input "main_loc0_Input" | |
| OpName %main_inner "main_inner" | |
| OpName %x "x" | |
| OpName %tint_loop_idx "tint_loop_idx" | |
| OpName %tint_low_inc "tint_low_inc" | |
| OpName %tint_carry "tint_carry" | |
| OpName %main "main" | |
| OpDecorate %main_loc0_Input Location 0 | |
| %float = OpTypeFloat 32 | |
| %_ptr_Input_float = OpTypePointer Input %float | |
| %main_loc0_Input = OpVariable %_ptr_Input_float Input | |
| %void = OpTypeVoid | |
| %7 = OpTypeFunction %void %float | |
| %uint = OpTypeInt 32 0 | |
| %v2uint = OpTypeVector %uint 2 | |
| %_ptr_Function_v2uint = OpTypePointer Function %v2uint | |
| %uint_4294967295 = OpConstant %uint 4294967295 | |
| %18 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295 | |
| %22 = OpConstantNull %v2uint | |
| %bool = OpTypeBool | |
| %v2bool = OpTypeVector %bool 2 | |
| %_ptr_Function_uint = OpTypePointer Function %uint | |
| %uint_0 = OpConstant %uint 0 | |
| %uint_1 = OpConstant %uint 1 | |
| %float_1 = OpConstant %float 1 | |
| %float_0 = OpConstant %float 0 | |
| %46 = OpTypeFunction %void | |
| %main_inner = OpFunction %void None %7 | |
| %x = OpFunctionParameter %float | |
| %8 = OpLabel | |
| %tint_loop_idx = OpVariable %_ptr_Function_v2uint Function | |
| OpBranch %9 | |
| %9 = OpLabel | |
| OpStore %tint_loop_idx %18 | |
| OpBranch %12 | |
| %12 = OpLabel | |
| OpLoopMerge %13 %11 None | |
| OpBranch %10 | |
| %10 = OpLabel | |
| %20 = OpLoad %v2uint %tint_loop_idx None | |
| %21 = OpIEqual %v2bool %20 %22 | |
| %25 = OpAll %bool %21 | |
| OpSelectionMerge %26 None | |
| OpBranchConditional %25 %27 %26 | |
| %27 = OpLabel | |
| OpBranch %13 | |
| %26 = OpLabel | |
| OpBranch %11 | |
| %11 = OpLabel | |
| %28 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_0 | |
| %31 = OpLoad %uint %28 None | |
| %tint_low_inc = OpISub %uint %31 %uint_1 | |
| %34 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_0 | |
| OpStore %34 %tint_low_inc None | |
| %35 = OpIEqual %bool %tint_low_inc %uint_4294967295 | |
| %tint_carry = OpSelect %uint %35 %uint_1 %uint_0 | |
| %37 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_1 | |
| %38 = OpLoad %uint %37 None | |
| %39 = OpISub %uint %38 %tint_carry | |
| %40 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_1 | |
| OpStore %40 %39 None | |
| %41 = OpDPdx %float %float_1 | |
| %43 = OpFOrdGreaterThan %bool %x %float_0 | |
| OpBranchConditional %43 %13 %12 | |
| %13 = OpLabel | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %46 | |
| %47 = OpLabel | |
| %48 = OpLoad %float %main_loc0_Input None | |
| %49 = OpFunctionCall %void %main_inner %48 | |
| OpReturn | |
| OpFunctionEnd |