summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-01-16 00:12:38 +0100
committerKarol Herbst <[email protected]>2019-01-19 20:01:41 +0100
commit36a76b7192707edce540a7db8809df00e8643514 (patch)
treeb50a34b3befbf7b42d1b38d5d98cf00792b2415b /src/amd/common
parent6fefd6972438054e3fb45666b6714a5c9c4859b9 (diff)
nir: rename nir_var_shared to nir_var_mem_shared
Signed-off-by: Karol Herbst <[email protected]> Acked-by: Jason Ekstrand <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index e3475e1e94f..c558873bbee 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -1891,7 +1891,7 @@ static LLVMValueRef visit_load_var(struct ac_nir_context *ctx,
LLVMValueRef ret;
unsigned const_index;
unsigned stride = 4;
- int mode = nir_var_shared;
+ int mode = nir_var_mem_shared;
if (var) {
bool vs_in = ctx->stage == MESA_SHADER_VERTEX &&
@@ -1964,7 +1964,7 @@ static LLVMValueRef visit_load_var(struct ac_nir_context *ctx,
}
}
break;
- case nir_var_shared: {
+ case nir_var_mem_shared: {
LLVMValueRef address = get_src(ctx, instr->src[0]);
LLVMValueRef val = LLVMBuildLoad(ctx->ac.builder, address, "");
return LLVMBuildBitCast(ctx->ac.builder, val,
@@ -2103,7 +2103,7 @@ visit_store_var(struct ac_nir_context *ctx,
}
}
break;
- case nir_var_shared: {
+ case nir_var_mem_shared: {
int writemask = instr->const_index[0];
LLVMValueRef address = get_src(ctx, instr->src[0]);
LLVMValueRef val = get_src(ctx, instr->src[1]);
@@ -3792,7 +3792,7 @@ static void visit_jump(struct ac_llvm_context *ctx,
static void visit_deref(struct ac_nir_context *ctx,
nir_deref_instr *instr)
{
- if (instr->mode != nir_var_shared)
+ if (instr->mode != nir_var_mem_shared)
return;
LLVMValueRef result = NULL;