radv/gfx10: fix implementation of exclusive scans
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Aug 2019 15:53:05 +0000 (17:53 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 27 Nov 2019 06:39:26 +0000 (07:39 +0100)
commitc9aa843961d2c3cb34e7cb2dc843b93d723e0692
tree9b5b6fc0a83d3f0b5ca973a073ce415f5c37834f
parent86a5fbfd4afb4fb53ab8ea0a13dda33b32f8b79b
radv/gfx10: fix implementation of exclusive scans

This implementation is loosely based on ROCm.
https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/master/ockl/src/wfredscan.cl

This fixes dEQP-VK.subgroups.arithmetic.*.subgroupexclusive* on GFX10.

Fixes: 227c29a80de ("amd/common/gfx10: implement scan & reduce operations")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/llvm/ac_llvm_build.c