OSDN Git Service

radv/gfx10: fix implementation of exclusive scans
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Aug 2019 15:53:05 +0000 (17:53 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 3 Dec 2019 18:22:47 +0000 (10:22 -0800)
commitd438ccdedf927e4ec3b0853fc7df753c9d246e8c
treebccc7a036e9082d8f1dab8441c80d5a1bfb87d5e
parent19573e4374564e25c1edd479c45134d8c09f3fd4
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>
(cherry picked from commit c9aa843961d2c3cb34e7cb2dc843b93d723e0692)
Conflicts resolved by Dylan Baker
src/amd/llvm/ac_llvm_build.c