commit b2235566057e39da42a534fbe5378d5e639dfa5a
Author: Nicolai Hähnle <nicolai.haehnle@amd.com>
Date: Mon Jun 12 22:33:56 2017 +0200
radeonsi: use the correct LLVMTargetMachineRef in si_build_shader_variant
si_build_shader_variant can actually be called directly from one of
normal-priority compiler threads. In that case, the thread_index is
only valid for the normal tm array.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101384 (maybe)
Fixes: 86cc8097266c ("radeonsi: use a compiler queue with a low priority for optimized shaders")