summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-06-29 10:33:38 -0700
committerJason Ekstrand <[email protected]>2017-07-05 15:26:55 -0700
commitca62e849d3c56ddafb1ef9ffceeec0ce6c1ab909 (patch)
tree140318cf53dfe933364bf7f5d511f8f427bc9dc4 /src/compiler/spirv/vtn_private.h
parent96f243985802281b3c6f1ca91e996d41ffef49f6 (diff)
nir/spirv: Stop using glsl_type for function types
We're going to want the full vtn_type available to us anyway at which point glsl_type isn't really buying us anything. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r--src/compiler/spirv/vtn_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h
index 48156fac4bd..b43b013d523 100644
--- a/src/compiler/spirv/vtn_private.h
+++ b/src/compiler/spirv/vtn_private.h
@@ -271,6 +271,15 @@ struct vtn_type {
/* Access qualifier for storage images */
SpvAccessQualifier access_qualifier;
};
+
+ /* Members for function types */
+ struct {
+ /* For functions, the vtn_type for each parameter */
+ struct vtn_type **params;
+
+ /* Return type for functions */
+ struct vtn_type *return_type;
+ };
};
};