diff options
author | Jason Ekstrand <[email protected]> | 2017-06-29 10:33:40 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-05 15:26:56 -0700 |
commit | ab1939aea8ff10d2e8b7d579575068ec11f60030 (patch) | |
tree | 3eb1ef905fe9ac9d0825a16b8041a20bd119c391 /src/compiler/spirv/spirv_to_nir.c | |
parent | 0bdc622d431ba15c8ef5ab2ef08790e2e7554eff (diff) |
nir/spirv: Rework function argument setup
Now that we have proper pointer types, we can be more sensible about the
way we set up function arguments and deal with the two cases of pointer
vs. SSA parameters distinctly.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/spirv/spirv_to_nir.c')
-rw-r--r-- | src/compiler/spirv/spirv_to_nir.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 462b0494f96..1743d8915a1 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -185,10 +185,6 @@ vtn_ssa_value(struct vtn_builder *b, uint32_t value_id) case vtn_value_type_ssa: return val->ssa; - case vtn_value_type_pointer: - /* This is needed for function parameters */ - return vtn_variable_load(b, val->pointer); - default: unreachable("Invalid type for an SSA value"); } |