diff options
author | Jason Ekstrand <[email protected]> | 2017-06-29 10:33:27 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-05 15:26:52 -0700 |
commit | 06b5eeda1718c1b1051e8f388d71ca49c056e179 (patch) | |
tree | d50c7040e0f21c2f9016c1c40336b2fbd584c92a /src/compiler/spirv/vtn_cfg.c | |
parent | 4e0280d37d1cdbe72199801f8e857bd8c88d1de5 (diff) |
nir/spirv: Rename some things from access_chain to pointer
We're about to add a vtn_pointer data structure and this will prevent
some rename churn in the next commit.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_cfg.c')
-rw-r--r-- | src/compiler/spirv/vtn_cfg.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/compiler/spirv/vtn_cfg.c b/src/compiler/spirv/vtn_cfg.c index 50ef767deac..123a8c68201 100644 --- a/src/compiler/spirv/vtn_cfg.c +++ b/src/compiler/spirv/vtn_cfg.c @@ -84,8 +84,7 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode, break; case SpvOpFunctionParameter: { - struct vtn_value *val = - vtn_push_value(b, w[2], vtn_value_type_access_chain); + struct vtn_value *val = vtn_push_value(b, w[2], vtn_value_type_pointer); struct vtn_type *type = vtn_value(b, w[1], vtn_value_type_type)->type; @@ -100,8 +99,8 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode, struct vtn_variable *vtn_var = rzalloc(b, struct vtn_variable); vtn_var->type = type; vtn_var->var = param; - vtn_var->chain.var = vtn_var; - vtn_var->chain.length = 0; + vtn_var->ptr.var = vtn_var; + vtn_var->ptr.length = 0; struct vtn_type *without_array = type; while(glsl_type_is_array(without_array->type)) @@ -117,7 +116,7 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode, vtn_var->mode = vtn_variable_mode_param; } - val->access_chain = &vtn_var->chain; + val->pointer = &vtn_var->ptr; break; } |