nir,vtn: Add return info to parameters

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33246>
This commit is contained in:
Friedrich Vock
2024-01-07 23:06:01 +01:00
committed by Marge Bot
parent 3321a56d1d
commit 767737536e
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -3580,7 +3580,7 @@ typedef struct {
uint8_t num_components;
uint8_t bit_size;
/* True if this paramater is actually the function return variable */
/* True if this parameter is a deref used for returning values */
bool is_return;
bool implicit_conversion_prohibited;
+2
View File
@@ -331,6 +331,8 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode,
func->params[idx++] = (nir_parameter) {
.num_components = nir_address_format_num_components(addr_format),
.bit_size = nir_address_format_bit_size(addr_format),
.is_return = true,
.type = func_type->return_type->type,
};
}