[Mesa-dev] [PATCH] radv/gfx10: do not set alignment on the ngg_emit pointer

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Jul 11 16:32:56 UTC 2019


This is invalid and this fixes a crash in LLVM.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_nir_to_llvm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index bf712b7fe45..32548857b57 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -4326,7 +4326,6 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm,
 				ctx.gs_ngg_emit = LLVMBuildIntToPtr(ctx.ac.builder, ctx.ac.i32_0,
 					LLVMPointerType(LLVMArrayType(ctx.ac.i32, 0), AC_ADDR_SPACE_LDS),
 					"ngg_emit");
-				LLVMSetAlignment(ctx.gs_ngg_emit, 4);
 			}
 
 			ctx.gs_max_out_vertices = shaders[i]->info.gs.vertices_out;
-- 
2.22.0



More information about the mesa-dev mailing list