summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-07-11 18:32:56 +0200
committerSamuel Pitoiset <[email protected]>2019-07-12 08:19:53 +0200
commitc6fa4de15deae048299796784ee3289681f19f68 (patch)
treed9509bc3f84a08ab2abdedb8cb31744108a0f4df /src/amd
parentdf0a23ad1ef6cfeeffca02a7556d92ad1c128bbc (diff)
radv/gfx10: do not set alignment on the ngg_emit pointer
This is invalid and this fixes a crash in LLVM. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_nir_to_llvm.c1
1 files changed, 0 insertions, 1 deletions
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;