4faf3581b8
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> |
||
---|---|---|
.. | ||
from_gen |