ac/llvm: Fix ac_build_reduce in wave32 mode.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 10 Jan 2020 11:06:53 +0000 (12:06 +0100)
committerTimur Kristóf <timur.kristof@gmail.com>
Fri, 10 Jan 2020 11:30:44 +0000 (12:30 +0100)
commiteccac46cdc6086b7a10adff2ea95de986d70a85d
treee8649066abdae325e004c561c916f7cfd4909e65
parenta5fe84aefb6858bee123f60b330db1e0287f9cc0
ac/llvm: Fix ac_build_reduce in wave32 mode.

Previously, when cluster_size was set to 0, it always worked as if
the cluster size was 64. This commit fixes it in wave32 mode by
changing to work as if the cluster size was set to 32.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/llvm/ac_llvm_build.c