| <dawn>/test/tint/diagnostic_filtering/for_loop_attribute.wgsl:5:21 warning: 'dpdx' must only be called from uniform control flow | |
| for (; x > v.x && dpdx(1.0) > 0.0; ) { | |
| ^^^^^^^^^ | |
| <dawn>/test/tint/diagnostic_filtering/for_loop_attribute.wgsl:5:3 note: control flow depends on possibly non-uniform value | |
| for (; x > v.x && dpdx(1.0) > 0.0; ) { | |
| ^^^ | |
| <dawn>/test/tint/diagnostic_filtering/for_loop_attribute.wgsl:5:21 note: return value of 'dpdx' may be non-uniform | |
| for (; x > v.x && dpdx(1.0) > 0.0; ) { | |
| ^^^^^^^^^ | |
| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 40 | |
| ; 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 %v "v" | |
| 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 | |
| %v4float = OpTypeVector %float 4 | |
| %_ptr_Function_v4float = OpTypePointer Function %v4float | |
| %12 = OpConstantNull %v4float | |
| %_ptr_Function_float = OpTypePointer Function %float | |
| %uint = OpTypeInt 32 0 | |
| %uint_0 = OpConstant %uint 0 | |
| %bool = OpTypeBool | |
| %float_1 = OpConstant %float 1 | |
| %float_0 = OpConstant %float 0 | |
| %false = OpConstantFalse %bool | |
| %36 = OpTypeFunction %void | |
| %main_inner = OpFunction %void None %7 | |
| %x = OpFunctionParameter %float | |
| %8 = OpLabel | |
| %v = OpVariable %_ptr_Function_v4float Function | |
| OpStore %v %12 | |
| OpBranch %15 | |
| %15 = OpLabel | |
| OpLoopMerge %16 %14 None | |
| OpBranch %13 | |
| %13 = OpLabel | |
| %17 = OpAccessChain %_ptr_Function_float %v %uint_0 | |
| %21 = OpLoad %float %17 None | |
| %22 = OpFOrdGreaterThan %bool %x %21 | |
| OpSelectionMerge %24 None | |
| OpBranchConditional %22 %25 %26 | |
| %25 = OpLabel | |
| %27 = OpDPdx %float %float_1 | |
| %29 = OpFOrdGreaterThan %bool %27 %float_0 | |
| OpBranch %24 | |
| %26 = OpLabel | |
| OpBranch %24 | |
| %24 = OpLabel | |
| %31 = OpPhi %bool %29 %25 %false %26 | |
| OpSelectionMerge %33 None | |
| OpBranchConditional %31 %33 %34 | |
| %34 = OpLabel | |
| OpBranch %16 | |
| %33 = OpLabel | |
| OpBranch %14 | |
| %14 = OpLabel | |
| OpBranch %15 | |
| %16 = OpLabel | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %36 | |
| %37 = OpLabel | |
| %38 = OpLoad %float %main_loc0_Input None | |
| %39 = OpFunctionCall %void %main_inner %38 | |
| OpReturn | |
| OpFunctionEnd |