[Mesa-dev] [PATCH] radv: remove unused code in radv_export_param()
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Jul 15 21:23:30 UTC 2019
R-b
On Mon, Jul 15, 2019, 8:49 AM Samuel Pitoiset <samuel.pitoiset at gmail.com>
wrote:
> It was hack for geometry shaders.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_nir_to_llvm.c | 16 +---------------
> 1 file changed, 1 insertion(+), 15 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_nir_to_llvm.c
> b/src/amd/vulkan/radv_nir_to_llvm.c
> index 00c7df8574b..a5eb8404108 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, "");
> }
>
> --
> 2.22.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190715/99539fce/attachment.html>
More information about the mesa-dev
mailing list