[Mesa-dev] [PATCH] radv: fix compute shared memory stores since 64-bit.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Feb 3 08:18:42 UTC 2017


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Fri, Feb 3, 2017, at 02:04, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> These regressed and caused doom to stop loading.
> 
> Fixes:
> 03724af26 radv/ac: Implement Float64 load/store var.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/amd/common/ac_nir_to_llvm.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/amd/common/ac_nir_to_llvm.c
> b/src/amd/common/ac_nir_to_llvm.c
> index 728294c..ddec74f 100644
> --- a/src/amd/common/ac_nir_to_llvm.c
> +++ b/src/amd/common/ac_nir_to_llvm.c
> @@ -2351,9 +2351,11 @@ visit_store_var(struct nir_to_llvm_context *ctx,
>  
>  			if (indir_index)
>  				index = LLVMBuildAdd(ctx->builder, index, indir_index, "");
> +
> +                       value = llvm_extract_elem(ctx, src, chan);
>  			derived_ptr = LLVMBuildGEP(ctx->builder, ptr, &index, 1, "");
>  			LLVMBuildStore(ctx->builder,
> -                                      to_integer(ctx, src),
> derived_ptr);
> +                                      to_integer(ctx, value),
> derived_ptr);
>  		}
>  		break;
>  	}
> -- 
> 2.7.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list