ac/nir: fix shader clock with subgroup scope
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 May 2020 07:56:36 +0000 (09:56 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 24 May 2020 18:37:54 +0000 (20:37 +0200)
commitb034f6cf2a267d3f5cdc24271bc61e5c496f1744
treecc1e52963cd6f6fbdb315b16efdf272dae8f2b5c
parentcecd4aad4605de47c056913ed430ad38f14625e5
ac/nir: fix shader clock with subgroup scope

The compiler should emit s_memtime instead of s_memrealtime for
the subgroup scope. I don't know why this LLVM 9 checks was for
but LLVM 8 also has this amdgcn intrinsic.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5117>
src/amd/llvm/ac_llvm_build.c