mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 00:40:10 +01:00
vtn: gather function parameter names
Unstripped SPIR-V libraries generated from OpenCL have lots of function parameter names. Gather them. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32208>
This commit is contained in:
parent
d248618d81
commit
5d7a230324
1 changed files with 2 additions and 0 deletions
|
|
@ -342,6 +342,8 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode,
|
|||
struct vtn_ssa_value *ssa = vtn_create_ssa_value(b, type->type);
|
||||
struct vtn_value *val = vtn_untyped_value(b, w[2]);
|
||||
|
||||
b->func->nir_func->params[b->func_param_idx].name = val->name;
|
||||
|
||||
vtn_foreach_decoration(b, val, function_parameter_decoration_cb, &arg_info);
|
||||
vtn_ssa_value_load_function_param(b, ssa, type, &arg_info, &b->func_param_idx);
|
||||
vtn_push_ssa_value(b, w[2], ssa);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue