I have found in the implementation of TAA that during the blending process, after completing the Prefetch from the Color buffer, there are two calls to the GroupMemoryBarrierWithGroupSync(). However, there is no write to the groupshared memory after the first call, so the second barrier should be redundant, is that correct?
That does look redundant. It's probably vestigial (left in from an earlier version of the code). However, it is benign because the compiler should remove unnecessary barriers.
I have found in the implementation of TAA that during the blending process, after completing the Prefetch from the Color buffer, there are two calls to the
GroupMemoryBarrierWithGroupSync()
. However, there is no write to the groupshared memory after the first call, so the second barrier should be redundant, is that correct?