dawn-cmake/test/tint/builtins/gen/var
Zhaoming Jiang 20cddbf04c tint: Implement modf and frexp built-ins for f16 types
This patch implement modf and frexp built-ins for f16 types, and also
simplify their implementation for f32 in MSL and HLSL, and clean up
deprecated code in GLSL writer. Corresponding unittests are also
implemented, but end-to-end tests for f16 are not implemented yet.

Bug: tint:1473, tint:1502
Change-Id: I12887ae5303c6dc032a51f619e1afeb19b4603b6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/98102
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-08-05 15:11:44 +00:00
..
abs test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
acos test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
acosh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
all test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
any test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
arrayLength tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
asin test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
asinh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atan test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atan2 const eval of atan2 2022-07-27 14:51:27 +00:00
atanh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicAdd test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicAnd test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicCompareExchangeWeak test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicExchange test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicLoad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicMax test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicMin test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicOr test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicStore test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicSub test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicXor test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
ceil test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
clamp const eval of clamp 2022-07-27 15:02:25 +00:00
cos test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
cosh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countLeadingZeros test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countOneBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countTrailingZeros test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
cross test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
degrees tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
determinant test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
distance test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dot test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dot4I8Packed test/tint: Regenerate SKIP expectations 2022-08-03 09:47:48 +00:00
dot4U8Packed test/tint: Regenerate SKIP expectations 2022-08-03 09:47:48 +00:00
dpdx test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdxCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdxFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdy test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdyCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdyFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
exp test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
exp2 test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
extractBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
faceForward test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
firstLeadingBit test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
firstTrailingBit test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
floor test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fma test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fract test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
frexp tint: Implement modf and frexp built-ins for f16 types 2022-08-05 15:11:44 +00:00
fwidth test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidthCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidthFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
insertBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
inverseSqrt test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
ldexp test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
length test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
log test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
log2 test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
max test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
min test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
mix test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
modf tint: Implement modf and frexp built-ins for f16 types 2022-08-05 15:11:44 +00:00
normalize test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16float test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack4x8snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack4x8unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pow test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
radians tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
reflect test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
refract test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
reverseBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
round test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
select test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sign test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sin test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sinh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
smoothstep test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sqrt test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
step test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
storageBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
tan test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
tanh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureDimensions test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureGather test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureGatherCompare test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureLoad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumLayers test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumLevels test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumSamples test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSample test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleBias test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleCompare test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleCompareLevel test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleGrad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleLevel test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureStore test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
transpose test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
trunc test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16float test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack4x8snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack4x8unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
workgroupBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00