diff options
author | Marek Olšák <[email protected]> | 2018-04-02 15:06:42 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-03 11:07:28 -0400 |
commit | d3e96b106307af7a5de8875cc5d6751c5b5edbb1 (patch) | |
tree | d1f2d978f5a9594e084730fe4d8b1d1892cf8524 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | acf60abc54fa86378c57d9c44890a9b6f3d6ed5c (diff) |
radeonsi/gfx9: fix bad LLVM params in monolithic LS+HS
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index dd2969aa755..60ca150c211 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -6846,7 +6846,7 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, si_build_wrapper_function(&ctx, parts + !vs_needs_prolog, - 4 - !vs_needs_prolog, 0, + 4 - !vs_needs_prolog, vs_needs_prolog, vs_needs_prolog ? 2 : 1); } else { LLVMValueRef parts[2]; @@ -6969,6 +6969,10 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, ac_count_scratch_private_memory(ctx.main_fn); } + /* Make sure the input is a pointer and not integer followed by inttoptr. */ + assert(LLVMGetTypeKind(LLVMTypeOf(LLVMGetParam(ctx.main_fn, 0))) == + LLVMPointerTypeKind); + /* Compile to bytecode. */ r = si_compile_llvm(sscreen, &shader->binary, &shader->config, tm, ctx.gallivm.module, debug, ctx.type, "TGSI shader"); |