radeonsi/ac: move get thread id to shared code.
authorDave Airlie <airlied@redhat.com>
Wed, 1 Feb 2017 23:35:40 +0000 (09:35 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 2 Feb 2017 23:54:04 +0000 (09:54 +1000)
commitc5f0a56aeba546dc6b9e62ba12bd77d552ac4f31
treeabb4edcee2cf03ed8cb992019ef7ec4372e8a2ad
parent1c5c268a8a73d59e4a16cdfeeada1b3b3cb80b78
radeonsi/ac: move get thread id to shared code.

radv will use this.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_llvm_util.c
src/amd/common/ac_llvm_util.h
src/gallium/drivers/radeonsi/si_shader.c