| <dawn>/test/tint/diagnostic_filtering/while_loop_attribute.wgsl:5:21 warning: 'dpdx' must only be called from uniform control flow | |
| while (x > 0.0 && dpdx(1.0) > 0.0) { | |
| ^^^^^^^^^ | |
| <dawn>/test/tint/diagnostic_filtering/while_loop_attribute.wgsl:5:3 note: control flow depends on possibly non-uniform value | |
| while (x > 0.0 && dpdx(1.0) > 0.0) { | |
| ^^^^^ | |
| <dawn>/test/tint/diagnostic_filtering/while_loop_attribute.wgsl:5:21 note: return value of 'dpdx' may be non-uniform | |
| while (x > 0.0 && dpdx(1.0) > 0.0) { | |
| ^^^^^^^^^ | |
| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 35 | |
| ; 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 | |
| %float_0 = OpConstant %float 0 | |
| %bool = OpTypeBool | |
| %float_1 = OpConstant %float 1 | |
| %false = OpConstantFalse %bool | |
| %31 = 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 = OpFOrdGreaterThan %bool %x %float_0 | |
| OpSelectionMerge %20 None | |
| OpBranchConditional %17 %21 %22 | |
| %21 = OpLabel | |
| %23 = OpDPdx %float %float_1 | |
| %25 = OpFOrdGreaterThan %bool %23 %float_0 | |
| OpBranch %20 | |
| %22 = OpLabel | |
| OpBranch %20 | |
| %20 = OpLabel | |
| %26 = OpPhi %bool %25 %21 %false %22 | |
| OpSelectionMerge %28 None | |
| OpBranchConditional %26 %28 %29 | |
| %29 = OpLabel | |
| OpBranch %16 | |
| %28 = OpLabel | |
| OpBranch %14 | |
| %14 = OpLabel | |
| OpBranch %15 | |
| %16 = OpLabel | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %31 | |
| %32 = OpLabel | |
| %33 = OpLoad %float %main_loc0_Input None | |
| %34 = OpFunctionCall %void %main_inner %33 | |
| OpReturn | |
| OpFunctionEnd |