st/glsl_to_nir: gather next_stage in shader_info
[mesa.git] / src / compiler / shader_info.h
index b1e200070f77267bfe5ac0d4fa89e8c96b427521..ababe520b2d63dd83a5b388e5e9ede4dc8ad1014 100644 (file)
@@ -51,11 +51,8 @@ struct spirv_supported_capabilities {
    bool subgroup_quad;
    bool subgroup_shuffle;
    bool subgroup_vote;
-};
-
-/* The supported extensions which add extended instructions */
-struct spirv_supported_extensions {
-   bool AMD_gcn_shader;
+   bool gcn_shader;
+   bool trinary_minmax;
 };
 
 typedef struct shader_info {
@@ -67,6 +64,11 @@ typedef struct shader_info {
    /** The shader stage, such as MESA_SHADER_VERTEX. */
    gl_shader_stage stage;
 
+   /** The shader stage in a non SSO linked program that follows this stage,
+     * such as MESA_SHADER_FRAGMENT.
+     */
+   gl_shader_stage next_stage;
+
    /* Number of textures used by this shader */
    unsigned num_textures;
    /* Number of uniform buffers used by this shader */