diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-15 08:53:11 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-16 08:12:20 +0200 |
commit | d8844533af8534277e126125aa25783b43e7101c (patch) | |
tree | 332b5d2708cc958d095bc6f510529bcc2c304e2e | |
parent | 6d50dcd80fc120fdabcd57ef576f3e45ea2724e4 (diff) |
radv: remove unused code in radv_export_param()
It was hack for geometry shaders.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 339c9d93423..5ab0d557819 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -2593,21 +2593,7 @@ radv_export_param(struct radv_shader_context *ctx, unsigned index, static LLVMValueRef radv_load_output(struct radv_shader_context *ctx, unsigned index, unsigned chan) { - LLVMValueRef output; - - if (ctx->vertexptr) { - LLVMValueRef gep_idx[3] = { - ctx->ac.i32_0, /* implicit C-style array */ - ctx->ac.i32_0, /* second value of struct */ - ctx->ac.i32_1, /* stream 1: source data index */ - }; - - gep_idx[2] = LLVMConstInt(ctx->ac.i32, ac_llvm_reg_index_soa(index, chan), false); - output = LLVMBuildGEP(ctx->ac.builder, ctx->vertexptr, gep_idx, 3, ""); - } else { - output = ctx->abi.outputs[ac_llvm_reg_index_soa(index, chan)]; - } - + LLVMValueRef output = ctx->abi.outputs[ac_llvm_reg_index_soa(index, chan)]; return LLVMBuildLoad(ctx->ac.builder, output, ""); } |