diff options
Diffstat (limited to 'src/compiler/nir/nir_lower_io.c')
-rw-r--r-- | src/compiler/nir/nir_lower_io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index d3d2d95f375..06598e054a6 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -189,7 +189,7 @@ lower_load(nir_intrinsic_instr *intrin, struct lower_io_state *state, case nir_var_uniform: op = nir_intrinsic_load_uniform; break; - case nir_var_shared: + case nir_var_mem_shared: op = nir_intrinsic_load_shared; break; default: @@ -228,7 +228,7 @@ lower_store(nir_intrinsic_instr *intrin, struct lower_io_state *state, nir_variable_mode mode = var->data.mode; nir_intrinsic_op op; - if (mode == nir_var_shared) { + if (mode == nir_var_mem_shared) { op = nir_intrinsic_store_shared; } else { assert(mode == nir_var_shader_out); @@ -261,7 +261,7 @@ static nir_intrinsic_instr * lower_atomic(nir_intrinsic_instr *intrin, struct lower_io_state *state, nir_variable *var, nir_ssa_def *offset) { - assert(var->data.mode == nir_var_shared); + assert(var->data.mode == nir_var_mem_shared); nir_intrinsic_op op; switch (intrin->intrinsic) { @@ -407,7 +407,7 @@ nir_lower_io_block(nir_block *block, if (mode != nir_var_shader_in && mode != nir_var_shader_out && - mode != nir_var_shared && + mode != nir_var_mem_shared && mode != nir_var_uniform) continue; |