dawn-cmake/test/tint/builtins/gen/var
Zhaoming Jiang 4faf3581b8 Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return
This CL fix the spv code generated for atomicCompareExchangeWeak,
specifically the emulated `exchanged` field of the returned struct.
It should be true if and only if the `old_value`, i.e. the return value
of spv `OpAtomicCompareExchange`, equals to the comparator, rather than
equals to new value.

Fixed: tint:1663
Change-Id: I1cb0de6bb6b90ae681f5053b8bdd6f6b247146f6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107180
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2022-10-26 08:23:25 +00:00
..
abs tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
acos tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
acosh tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +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: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
asin tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
asinh tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
atan tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
atan2 tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
atanh Add const-eval for `atanh`. 2022-10-25 18:03:56 +00:00
atomicAdd tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicAnd tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicCompareExchangeWeak Tint/builder/spirv: Fix atomicCompareExchangeWeak wrong return 2022-10-26 08:23:25 +00:00
atomicExchange tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicLoad GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
atomicMax tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicMin tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicOr tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicStore tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicSub tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
atomicXor tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
ceil tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
clamp tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
cos tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
cosh tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
countLeadingZeros tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
countOneBits tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
countTrailingZeros tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
cross tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
degrees tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
determinant tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
distance tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
dot tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
dot4I8Packed tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
dot4U8Packed tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +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 tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
exp2 tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
extractBits tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
faceForward tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
firstLeadingBit tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
firstTrailingBit tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
floor tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
fma tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
fract tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
frexp tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +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 tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
inverseSqrt tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
ldexp tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
length tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
log tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
log2 tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
max tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
min tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
mix tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
modf tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
normalize tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +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 tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
radians tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
reflect tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
refract tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
reverseBits tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
round tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
saturate tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
select tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
sign tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
sin tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
sinh tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
smoothstep tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
sqrt tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
step tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
storageBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
tan tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
tanh tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
textureDimensions test/tint/builtins: Remove hack for 'level' parameter value 2022-10-25 13:08:45 +00:00
textureGather tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureGatherCompare tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureLoad test/tint/builtins: Remove hack for 'level' parameter value 2022-10-25 13:08:45 +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 tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureSampleBaseClampToEdge tint: Implement textureSampleBaseClampToEdge 2022-09-22 22:59:16 +00:00
textureSampleBias tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureSampleCompare tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureSampleCompareLevel tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureSampleGrad tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
textureSampleLevel test/tint/builtins: Remove hack for 'level' parameter value 2022-10-25 13:08:45 +00:00
textureStore tint/test/builtins/gen: Fix i32 argument values 2022-10-25 13:08:45 +00:00
transpose tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +00:00
trunc tint: Allow signed / unsigned texture builtin params 2022-10-24 23:58:53 +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