radv: remove unused code in radv_export_param()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 15 Jul 2019 06:53:11 +0000 (08:53 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 Jul 2019 06:12:20 +0000 (08:12 +0200)
It was hack for geometry shaders.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_nir_to_llvm.c

index 339c9d93423932ed72375868d62e8319b6b60990..5ab0d557819a86f00952ac8c3418be9473e9b844 100644 (file)
@@ -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, "");
 }