File U_radeonsi-add-llvm-init.patch of Package Mesa

From: Takashi Iwai <tiwai@suse.de>
Subject: Fix Xvfb segfault after reset
References: bsc#1042764

The explicit call of LLVMInitializeAMDGPUAsmParser() is needed for
avoiding the crash of Xvfb after reset, which was caused by the
reference of AMDGPU DL object.

It's a part of the upstream commit 24d4fbe226c1f5b9a216d05c25737b4b14391975
 radeonsi: strengthen emit_optimization_barrier

Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
 src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c |    1 +
 1 file changed, 1 insertion(+)

--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
@@ -132,6 +132,7 @@ static void init_amdgpu_target()
 	LLVMInitializeAMDGPUTarget();
 	LLVMInitializeAMDGPUTargetMC();
 	LLVMInitializeAMDGPUAsmPrinter();
+	LLVMInitializeAMDGPUAsmParser();
 
 #endif
 	if (HAVE_LLVM >= 0x0400) {
openSUSE Build Service is sponsored by