Skip to content

nir: Add a helper for getting a nir_op from an atomic intrinsic

Faith Ekstrand requested to merge gfxstrand/mesa:nir/atomic-alu-helper into main

Atomic intrinsics are a mess and, while this doesn't entirely eliminate the mess, it helps substantially by letting you write semi-generic code that doesn't have to care about the memory space and can just look at atomics in terms of the nir_op they perform.

Merge request reports

Loading