diff options
author | Jason Ekstrand <[email protected]> | 2018-03-22 18:44:06 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:15:57 -0700 |
commit | 3fc3798677545610f624c0887065e9cb6fcc6db2 (patch) | |
tree | c36072646264e6134c2779f74141bb363c31e589 /src/compiler/spirv/vtn_cfg.c | |
parent | 2f9bfd7dd9a016c7700f3f8767094443aed4cadb (diff) |
spirv: Record the type of functions
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_cfg.c')
-rw-r--r-- | src/compiler/spirv/vtn_cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/spirv/vtn_cfg.c b/src/compiler/spirv/vtn_cfg.c index 6e6f221040d..efae35ccc1e 100644 --- a/src/compiler/spirv/vtn_cfg.c +++ b/src/compiler/spirv/vtn_cfg.c @@ -56,8 +56,8 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode, struct vtn_value *val = vtn_push_value(b, w[2], vtn_value_type_function); val->func = b->func; - const struct vtn_type *func_type = - vtn_value(b, w[4], vtn_value_type_type)->type; + b->func->type = vtn_value(b, w[4], vtn_value_type_type)->type; + const struct vtn_type *func_type = b->func->type; vtn_assert(func_type->return_type->type == result_type); |