mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 11:40:29 +00:00 
			
		
		
		
	There's no good reason for this to be public. Move it into the writers, and expose a 'disable_robustness' option to turn it off. This can be expanded to hold more fine-grain control in the future. Change-Id: I6ea6e54a27b2ae0fbcba5fdf45539063045cc15a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122203 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
		
			
				
	
	
		
			71 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ; SPIR-V
 | |
| ; Version: 1.3
 | |
| ; Generator: Google Tint Compiler; 0
 | |
| ; Bound: 50
 | |
| ; Schema: 0
 | |
|                OpCapability Shader
 | |
|                OpMemoryModel Logical GLSL450
 | |
|                OpEntryPoint GLCompute %f "f"
 | |
|                OpExecutionMode %f LocalSize 1 1 1
 | |
|                OpName %tint_mod "tint_mod"
 | |
|                OpName %lhs "lhs"
 | |
|                OpName %rhs "rhs"
 | |
|                OpName %f "f"
 | |
|         %int = OpTypeInt 32 1
 | |
|       %v3int = OpTypeVector %int 3
 | |
|           %1 = OpTypeFunction %v3int %int %v3int
 | |
|          %10 = OpConstantNull %v3int
 | |
|        %bool = OpTypeBool
 | |
|      %v3bool = OpTypeVector %bool 3
 | |
| %int_n2147483648 = OpConstant %int -2147483648
 | |
|          %15 = OpConstantComposite %v3int %int_n2147483648 %int_n2147483648 %int_n2147483648
 | |
|      %int_n1 = OpConstant %int -1
 | |
|          %18 = OpConstantComposite %v3int %int_n1 %int_n1 %int_n1
 | |
|       %int_1 = OpConstant %int 1
 | |
|          %23 = OpConstantComposite %v3int %int_1 %int_1 %int_1
 | |
|        %uint = OpTypeInt 32 0
 | |
|      %v3uint = OpTypeVector %uint 3
 | |
| %uint_2147483648 = OpConstant %uint 2147483648
 | |
|          %30 = OpConstantComposite %v3uint %uint_2147483648 %uint_2147483648 %uint_2147483648
 | |
|          %32 = OpConstantNull %v3uint
 | |
|        %void = OpTypeVoid
 | |
|          %41 = OpTypeFunction %void
 | |
|       %int_4 = OpConstant %int 4
 | |
|       %int_2 = OpConstant %int 2
 | |
|       %int_3 = OpConstant %int 3
 | |
|          %48 = OpConstantComposite %v3int %int_1 %int_2 %int_3
 | |
|    %tint_mod = OpFunction %v3int None %1
 | |
|         %lhs = OpFunctionParameter %int
 | |
|         %rhs = OpFunctionParameter %v3int
 | |
|           %7 = OpLabel
 | |
|           %8 = OpCompositeConstruct %v3int %lhs %lhs %lhs
 | |
|          %11 = OpIEqual %v3bool %rhs %10
 | |
|          %16 = OpIEqual %v3bool %8 %15
 | |
|          %19 = OpIEqual %v3bool %rhs %18
 | |
|          %20 = OpLogicalAnd %v3bool %16 %19
 | |
|          %21 = OpLogicalOr %v3bool %11 %20
 | |
|           %9 = OpSelect %v3int %21 %23 %rhs
 | |
|          %28 = OpBitwiseOr %v3int %8 %9
 | |
|          %25 = OpBitcast %v3uint %28
 | |
|          %31 = OpBitwiseAnd %v3uint %25 %30
 | |
|          %33 = OpINotEqual %v3bool %31 %32
 | |
|          %24 = OpAny %bool %33
 | |
|                OpSelectionMerge %34 None
 | |
|                OpBranchConditional %24 %35 %36
 | |
|          %35 = OpLabel
 | |
|          %37 = OpSDiv %v3int %8 %9
 | |
|          %38 = OpIMul %v3int %37 %9
 | |
|          %39 = OpISub %v3int %8 %38
 | |
|                OpReturnValue %39
 | |
|          %36 = OpLabel
 | |
|          %40 = OpSRem %v3int %8 %9
 | |
|                OpReturnValue %40
 | |
|          %34 = OpLabel
 | |
|                OpReturnValue %10
 | |
|                OpFunctionEnd
 | |
|           %f = OpFunction %void None %41
 | |
|          %44 = OpLabel
 | |
|          %49 = OpFunctionCall %v3int %tint_mod %int_4 %48
 | |
|                OpReturn
 | |
|                OpFunctionEnd
 |