blob: 4fa19b9a9f15957ebf959f97ab8729a4886d3f59 [file] [edit]
<dawn>/test/tint/diagnostic_filtering/loop_attribute.wgsl:5:9 warning: 'dpdx' must only be called from uniform control flow
_ = dpdx(1.0);
^^^^^^^^^
<dawn>/test/tint/diagnostic_filtering/loop_attribute.wgsl:7:7 note: control flow depends on possibly non-uniform value
break if x > 0.0;
^^^^^
<dawn>/test/tint/diagnostic_filtering/loop_attribute.wgsl:7: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: 23
; 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 %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
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%bool = OpTypeBool
%19 = OpTypeFunction %void
%main_inner = OpFunction %void None %7
%x = OpFunctionParameter %float
%8 = OpLabel
OpBranch %11
%11 = OpLabel
OpLoopMerge %12 %10 None
OpBranch %9
%9 = OpLabel
%13 = OpDPdx %float %float_1
OpBranch %10
%10 = OpLabel
%15 = OpFOrdGreaterThan %bool %x %float_0
OpBranchConditional %15 %12 %11
%12 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %19
%20 = OpLabel
%21 = OpLoad %float %main_loc0_Input None
%22 = OpFunctionCall %void %main_inner %21
OpReturn
OpFunctionEnd