ac/llvm: don't set unsupported xnack options to fix LLVM crashes on gfx6-8
LLVM prints an error if xnack is unsupported and it uses a global stream object that is not thread-safe. Since Mesa uses multiple threads to compile shaders, there is a small chance that it will crash. Just don't set any xnack options to use LLVM defaults. Closes: mesa/mesa#4439 Cc: 20.3 21.0 <mesa-stable@lists.freedesktop.org> Reviewed-by:Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <mesa/mesa!9795> (cherry picked from commit ac78b12e)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/amd/llvm/ac_llvm_util.c 1 addition, 3 deletionssrc/amd/llvm/ac_llvm_util.c
- src/amd/llvm/ac_llvm_util.h 0 additions, 2 deletionssrc/amd/llvm/ac_llvm_util.h
- src/gallium/drivers/radeonsi/si_pipe.c 0 additions, 2 deletionssrc/gallium/drivers/radeonsi/si_pipe.c