nir: add names to function parameters

SPIR-V has this information. We should try to preserve it.

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:
Alyssa Rosenzweig
2024-11-17 14:17:13 -04:00
committed by Marge Bot
parent 61862b209e
commit 3da8444be5
5 changed files with 23 additions and 3 deletions
+3
View File
@@ -3650,6 +3650,9 @@ typedef struct {
/* The type of the function param */
const struct glsl_type *type;
/* Name if known, null if unknown */
const char *name;
} nir_parameter;
typedef struct nir_function {