dawn-cmake/test/tint/builtins/gen
Ben Clayton 8169693136 builtins: Add firstLeadingBit
Currently polyfilled for all backends.
HLSL should be able to map this to 'firstbithigh', but there might need
to be some special case handling for 0 (undocumented behavior). For now
just polyfill.

CTS tests: https://github.com/gpuweb/cts/pull/1004

Bug: tint:1367
Bug: tint:1449
Change-Id: I9c9a08ea93d1c4a602e0ab763e95e2eea336fb0d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81503
Reviewed-by: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2022-02-23 18:20:30 +00:00
..
abs tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
acos tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
all tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
any tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
arrayLength tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
asin tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atan tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atan2 tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicAdd tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicAnd tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicCompareExchangeWeak tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicExchange tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicLoad tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicMax tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicMin tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicOr tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicStore tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicSub tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
atomicXor tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
ceil tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
clamp tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
cos tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
cosh tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
countLeadingZeros builtins: Add countLeadingZeros 2022-02-22 23:13:39 +00:00
countOneBits tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
countTrailingZeros builtins: Add countTrailingZeros 2022-02-22 23:16:39 +00:00
cross tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
degrees tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
determinant tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
distance tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dot tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dpdx tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dpdxCoarse tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dpdxFine tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dpdy tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dpdyCoarse tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
dpdyFine tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
exp tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
exp2 tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
faceForward tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
firstLeadingBit builtins: Add firstLeadingBit 2022-02-23 18:20:30 +00:00
firstTrailingBit builtins: Add firstTrailingBit 2022-02-23 14:32:14 +00:00
floor tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
fma tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
fract tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
frexp tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
fwidth tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
fwidthCoarse tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
fwidthFine tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
inverseSqrt tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
isFinite tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
isInf tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
isNan tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
isNormal tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
ldexp tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
length tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
log tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
log2 tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
max tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
min tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
mix tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
modf tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
normalize tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
pack2x16float tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
pack2x16snorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
pack2x16unorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
pack4x8snorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
pack4x8unorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
pow tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
radians tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
reflect tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
refract tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
reverseBits tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
round tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
select tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
sign tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
sin tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
sinh tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
smoothStep tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
sqrt tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
step tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
storageBarrier tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
tan tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
tanh tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureDimensions tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureGather tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureGatherCompare tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureLoad tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureNumLayers tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureNumLevels tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureNumSamples tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureSample tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureSampleBias tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureSampleCompare tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureSampleCompareLevel tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureSampleGrad tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureSampleLevel tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
textureStore tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
transpose tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
trunc tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
unpack2x16float tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
unpack2x16snorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
unpack2x16unorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
unpack4x8snorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
unpack4x8unorm tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00
workgroupBarrier tools: Update post-shuffle paths for builtin-gen 2022-02-22 20:24:59 +00:00