nir/opt_intrinsics: optimize (exclusive_scan(op, a) op a) to inclusive scan
authorGeorg Lehmann <dadschoorse@gmail.com>
Tue, 8 Aug 2023 12:48:50 +0000 (14:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Aug 2023 23:10:13 +0000 (23:10 +0000)
commit5c70a55bf3fbc5f32e81843a0d49e137f35a30b6
treecb7ea8099858102c7c346afdd73907ce5e503640
parent7a3e5dd2ec1ac81317e1af075fdd0fe16aa67b1d
nir/opt_intrinsics: optimize (exclusive_scan(op, a) op a) to inclusive scan

D3D only has exclusive scans so some games use this pattern.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24557>
src/compiler/nir/nir_opt_intrinsics.c