commit | f83bc5beb803348f8226ea904c55dc6f9262d549 | [log] [tgz] |
---|---|---|
author | Rhys Perry <pendingchaos02@gmail.com> | Tue Sep 01 16:31:37 2020 +0100 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Oct 13 12:47:21 2020 +0000 |
tree | 124791cc6c830ca1439b7d75a9d167d2feecaa97 | |
parent | 37b6b0967ca46ff4d31baf3fdccebb64aa4313e9 [diff] |
nir: add pass to optimize uniform atomics This optimizes atomics with a uniform offset so that only one atomic operation is done in the subgroup. For shaders which do a very large amount of atomics, this can significantly improve performance. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6558>