mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Remove isNan, isInf, isFinite, and isNormal
These were deprecated in M98. Fixed: tint:1312 Change-Id: Ieec17bfcc729f90d0a9aa8904a162167b9de54ed Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82800 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
e228319549
commit
bcd9ad2ebb
@@ -1,45 +0,0 @@
|
||||
; Test: SpvLogicalTest_IsInf_Scalar.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 101
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
%void = OpTypeVoid
|
||||
%3 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%true = OpConstantTrue %bool
|
||||
%false = OpConstantFalse %bool
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%float = OpTypeFloat 32
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%int_30 = OpConstant %int 30
|
||||
%int_40 = OpConstant %int 40
|
||||
%float_50 = OpConstant %float 50
|
||||
%float_60 = OpConstant %float 60
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%v2bool = OpTypeVector %bool 2
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v2float = OpTypeVector %float 2
|
||||
%23 = OpConstantComposite %v2bool %true %false
|
||||
%24 = OpConstantComposite %v2bool %false %true
|
||||
%25 = OpConstantComposite %v2uint %uint_10 %uint_20
|
||||
%26 = OpConstantComposite %v2uint %uint_20 %uint_10
|
||||
%27 = OpConstantComposite %v2int %int_30 %int_40
|
||||
%28 = OpConstantComposite %v2int %int_40 %int_30
|
||||
%29 = OpConstantComposite %v2float %float_50 %float_60
|
||||
%30 = OpConstantComposite %v2float %float_60 %float_50
|
||||
%100 = OpFunction %void None %3
|
||||
%31 = OpLabel
|
||||
%1 = OpIsInf %bool %float_50
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
; Test: SpvLogicalTest_IsInf_Vector.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 101
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
%void = OpTypeVoid
|
||||
%3 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%true = OpConstantTrue %bool
|
||||
%false = OpConstantFalse %bool
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%float = OpTypeFloat 32
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%int_30 = OpConstant %int 30
|
||||
%int_40 = OpConstant %int 40
|
||||
%float_50 = OpConstant %float 50
|
||||
%float_60 = OpConstant %float 60
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%v2bool = OpTypeVector %bool 2
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v2float = OpTypeVector %float 2
|
||||
%23 = OpConstantComposite %v2bool %true %false
|
||||
%24 = OpConstantComposite %v2bool %false %true
|
||||
%25 = OpConstantComposite %v2uint %uint_10 %uint_20
|
||||
%26 = OpConstantComposite %v2uint %uint_20 %uint_10
|
||||
%27 = OpConstantComposite %v2int %int_30 %int_40
|
||||
%28 = OpConstantComposite %v2int %int_40 %int_30
|
||||
%29 = OpConstantComposite %v2float %float_50 %float_60
|
||||
%30 = OpConstantComposite %v2float %float_60 %float_50
|
||||
%100 = OpFunction %void None %3
|
||||
%31 = OpLabel
|
||||
%1 = OpIsInf %v2bool %29
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
; Test: SpvLogicalTest_IsNan_Scalar.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 101
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
%void = OpTypeVoid
|
||||
%3 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%true = OpConstantTrue %bool
|
||||
%false = OpConstantFalse %bool
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%float = OpTypeFloat 32
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%int_30 = OpConstant %int 30
|
||||
%int_40 = OpConstant %int 40
|
||||
%float_50 = OpConstant %float 50
|
||||
%float_60 = OpConstant %float 60
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%v2bool = OpTypeVector %bool 2
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v2float = OpTypeVector %float 2
|
||||
%23 = OpConstantComposite %v2bool %true %false
|
||||
%24 = OpConstantComposite %v2bool %false %true
|
||||
%25 = OpConstantComposite %v2uint %uint_10 %uint_20
|
||||
%26 = OpConstantComposite %v2uint %uint_20 %uint_10
|
||||
%27 = OpConstantComposite %v2int %int_30 %int_40
|
||||
%28 = OpConstantComposite %v2int %int_40 %int_30
|
||||
%29 = OpConstantComposite %v2float %float_50 %float_60
|
||||
%30 = OpConstantComposite %v2float %float_60 %float_50
|
||||
%100 = OpFunction %void None %3
|
||||
%31 = OpLabel
|
||||
%1 = OpIsNan %bool %float_50
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
; Test: SpvLogicalTest_IsNan_Vector.spvasm
|
||||
; SPIR-V
|
||||
; Version: 1.0
|
||||
; Generator: Khronos SPIR-V Tools Assembler; 0
|
||||
; Bound: 101
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical Simple
|
||||
OpEntryPoint Fragment %100 "main"
|
||||
OpExecutionMode %100 OriginUpperLeft
|
||||
%void = OpTypeVoid
|
||||
%3 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%true = OpConstantTrue %bool
|
||||
%false = OpConstantFalse %bool
|
||||
%uint = OpTypeInt 32 0
|
||||
%int = OpTypeInt 32 1
|
||||
%float = OpTypeFloat 32
|
||||
%uint_10 = OpConstant %uint 10
|
||||
%uint_20 = OpConstant %uint 20
|
||||
%int_30 = OpConstant %int 30
|
||||
%int_40 = OpConstant %int 40
|
||||
%float_50 = OpConstant %float 50
|
||||
%float_60 = OpConstant %float 60
|
||||
%_ptr_Function_uint = OpTypePointer Function %uint
|
||||
%_ptr_Function_int = OpTypePointer Function %int
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%v2bool = OpTypeVector %bool 2
|
||||
%v2uint = OpTypeVector %uint 2
|
||||
%v2int = OpTypeVector %int 2
|
||||
%v2float = OpTypeVector %float 2
|
||||
%23 = OpConstantComposite %v2bool %true %false
|
||||
%24 = OpConstantComposite %v2bool %false %true
|
||||
%25 = OpConstantComposite %v2uint %uint_10 %uint_20
|
||||
%26 = OpConstantComposite %v2uint %uint_20 %uint_10
|
||||
%27 = OpConstantComposite %v2int %int_30 %int_40
|
||||
%28 = OpConstantComposite %v2int %int_40 %int_30
|
||||
%29 = OpConstantComposite %v2float %float_50 %float_60
|
||||
%30 = OpConstantComposite %v2float %float_60 %float_50
|
||||
%100 = OpFunction %void None %3
|
||||
%31 = OpLabel
|
||||
%1 = OpIsNan %v2bool %29
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
SKIP: FAILED
|
||||
|
||||
warning: use of deprecated builtin
|
||||
void main_1() {
|
||||
const bool2 x_1 = isnan(float2(50.0f, 60.0f));
|
||||
return;
|
||||
}
|
||||
|
||||
void main() {
|
||||
main_1();
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user